{"id":1195,"date":"2018-07-02T16:59:59","date_gmt":"2018-07-02T16:59:59","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=1195"},"modified":"2023-11-03T10:07:47","modified_gmt":"2023-11-03T10:07:47","slug":"lookup","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/functions\/lookup\/","title":{"rendered":"LOOKUP function"},"content":{"rendered":"\n

Excel LOOKUP Function allows you to search for a value in a specific range or table and return a corresponding value from another range or table. It’s like finding information in a big book and using a reference to get the answer.<\/p>\n\n\n\n

Syntax<\/h2>\n\n\n\n

=LOOKUP(lookup_value, lookup_vector, result_vector)<\/strong><\/p>\n\n\n\n

Arguments<\/h2>\n\n\n\n

Here’s a breakdown of the function’s arguments:<\/p>\n\n\n\n

lookup_value<\/strong><\/td>The value you want to find in the lookup_vector.<\/td><\/tr>
lookup_vector<\/strong><\/td>The range of cells where Excel will search for the lookup_value.<\/td><\/tr>
result_vector<\/strong><\/td>The range of cells from which Excel will return a corresponding value.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

How to use<\/h2>\n\n\n\n

Let’s break down how to use the LOOKUP function with an example:<\/p>\n\n\n\n

Imagine you have a list of student names in one column and their corresponding test scores in another column. You want to find a specific student’s test score.<\/p>\n\n\n\n

=LOOKUP(\"John\", A1:A5, B1:B5)<\/code><\/pre>\n\n\n\n

In this example:<\/p>\n\n\n\n

    \n
  • “John”<\/strong> is the lookup_value, which is the student’s name you’re searching for.<\/li>\n\n\n\n
  • A1:A5<\/strong> is the lookup_vector, the range of student names.<\/li>\n\n\n\n
  • B1:B5<\/strong> is the result_vector, the range of test scores.<\/li>\n<\/ul>\n\n\n\n

    The LOOKUP function will search for “John” in the student names, and when it finds a match, it returns the corresponding test score. If “John” is in A3, it will return the test score from B3.<\/p>\n\n\n\n

    Here are a few things to keep in mind:<\/p>\n\n\n\n

      \n
    • The LOOKUP function works best when the data in the lookup_vector is sorted in ascending order. If it’s not, you may not get the desired result.<\/li>\n\n\n\n
    • If Excel doesn’t find an exact match, it will return the closest match that is less than or equal to the lookup_value. So, if “John” isn’t in the list, it will return the score of the nearest name that comes before “John” in alphabetical order.<\/li>\n<\/ul>\n\n\n\n

      Now, let’s see what happens if we use the LOOKUP function with a value that isn’t in the list:<\/p>\n\n\n\n

      =LOOKUP(\"Sarah\", A1:A5, B1:B5)<\/code><\/pre>\n\n\n\n

      If “Sarah” isn’t in the student names, the function will return the test score of the student with the name closest to “Sarah” alphabetically. So, it’s crucial to ensure your data is correctly sorted.<\/p>\n\n\n\n

      The LOOKUP function is a useful tool for finding data in large lists or tables, but it requires careful data organization to work effectively.<\/p>\n","protected":false},"excerpt":{"rendered":"

      Excel LOOKUP Function allows you to search for a value in a specific range or table and return a corresponding value from another…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[180],"yoast_head":"\nLOOKUP function<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/functions\/lookup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LOOKUP function\" \/>\n<meta property=\"og:description\" content=\"Excel LOOKUP Function allows you to search for a value in a specific range or table and return a corresponding value from another...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/functions\/lookup\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-02T16:59:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-03T10:07:47+00:00\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/lookup\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/lookup\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"LOOKUP function\",\"datePublished\":\"2018-07-02T16:59:59+00:00\",\"dateModified\":\"2023-11-03T10:07:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/lookup\/\"},\"wordCount\":390,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"keywords\":[\"done\"],\"articleSection\":[\"functions\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/lookup\/\",\"url\":\"https:\/\/officetuts.net\/excel\/functions\/lookup\/\",\"name\":\"LOOKUP function\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"datePublished\":\"2018-07-02T16:59:59+00:00\",\"dateModified\":\"2023-11-03T10:07:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/lookup\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/functions\/lookup\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/lookup\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LOOKUP function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LOOKUP function","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/functions\/lookup\/","og_locale":"en_US","og_type":"article","og_title":"LOOKUP function","og_description":"Excel LOOKUP Function allows you to search for a value in a specific range or table and return a corresponding value from another...","og_url":"https:\/\/officetuts.net\/excel\/functions\/lookup\/","article_published_time":"2018-07-02T16:59:59+00:00","article_modified_time":"2023-11-03T10:07:47+00:00","author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/functions\/lookup\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/functions\/lookup\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"LOOKUP function","datePublished":"2018-07-02T16:59:59+00:00","dateModified":"2023-11-03T10:07:47+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/functions\/lookup\/"},"wordCount":390,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"keywords":["done"],"articleSection":["functions"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/functions\/lookup\/","url":"https:\/\/officetuts.net\/excel\/functions\/lookup\/","name":"LOOKUP function","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"datePublished":"2018-07-02T16:59:59+00:00","dateModified":"2023-11-03T10:07:47+00:00","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/functions\/lookup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/functions\/lookup\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/functions\/lookup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"LOOKUP function"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1195"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=1195"}],"version-history":[{"count":3,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1195\/revisions"}],"predecessor-version":[{"id":16456,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1195\/revisions\/16456"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=1195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=1195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=1195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}