{"id":491,"date":"2025-07-15T13:34:47","date_gmt":"2025-07-15T13:34:47","guid":{"rendered":"https:\/\/functiontranslator.com\/2021\/02\/12\/xlookup\/"},"modified":"2021-02-13T11:37:02","modified_gmt":"2021-02-13T11:37:02","slug":"xlookup","status":"publish","type":"post","link":"https:\/\/functiontranslator.com\/en\/xlookup\/","title":{"rendered":"XLOOKUP"},"content":{"rendered":"<p>Today, let&#8217;s dive into the capabilities of a powerful Excel and Google Sheets function known as XLOOKUP. XLOOKUP is designed to search through a range or array and returns the corresponding item from the first match it finds. This function serves as a modern replacement for older functions like VLOOKUP, HLOOKUP, and LOOKUP, providing greater flexibility and user-friendliness.<\/p>\n<h2>Basic Syntax<\/h2>\n<p>The fundamental syntax of the XLOOKUP function is:<\/p>\n<pre><code>XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])<\/code><\/pre>\n<p>Here\u2019s a detailed explanation of the parameters:<\/p>\n<ul>\n<li><strong>lookup_value:<\/strong> The value you are searching for.<\/li>\n<li><strong>lookup_array:<\/strong> The array or range to perform the search in.<\/li>\n<li><strong>return_array:<\/strong> The array or range from which to retrieve the result.<\/li>\n<li><strong>if_not_found (optional):<\/strong> Specifies a value to return if the search does not find a match.<\/li>\n<li><strong>match_mode (optional):<\/strong> This can be set to 0 for an exact match, -1 for an exact match or the next smaller item, or 1 for an exact match or the next larger item.<\/li>\n<li><strong>search_mode (optional):<\/strong> Designates the search order; 1 for searching from first to last, -1 for last to first, or 2 for a binary search.<\/li>\n<\/ul>\n<h2>Example 1: Simple XLOOKUP<\/h2>\n<p>Consider a list of employees and their respective salaries. We need to find the salary of an employee named John using XLOOKUP.<\/p>\n<table>\n<tr>\n<th>Employee<\/th>\n<th>Salary<\/th>\n<\/tr>\n<tr>\n<td>John<\/td>\n<td>50000<\/td>\n<\/tr>\n<tr>\n<td>Alice<\/td>\n<td>60000<\/td>\n<\/tr>\n<tr>\n<td>Bob<\/td>\n<td>45000<\/td>\n<\/tr>\n<\/table>\n<p>Formula: <code>=XLOOKUP(\"John\", A2:A4, B2:B4)<\/code><\/p>\n<p>This formula successfully returns John&#8217;s salary as $50,000.<\/p>\n<h2>Example 2: XLOOKUP with Default Value<\/h2>\n<p>If a search doesn\u2019t yield a result, you can set a default return value. Let&#8217;s update our previous example for an employee named David:<\/p>\n<p>Formula: <code>=XLOOKUP(\"David\", A2:A4, B2:B4, \"Not found\")<\/code><\/p>\n<p>This formula will return &#8220;Not found&#8221; as David is not listed among the employees.<\/p>\n<h2>Example 3: Using XLOOKUP with Match Modes<\/h2>\n<p>You can fine-tune the behavior of your XLOOKUP query with match modes. Suppose we want to find the closest salary to a certain amount not present in our array:<\/p>\n<p>Formula: <code>=XLOOKUP(55000, B2:B4, A2:A4, , 1)<\/code><\/p>\n<p>This query returns &#8220;Alice&#8221; because $55,000 falls between John&#8217;s and Alice&#8217;s salaries, making hers the next higher match.<\/p>\n<h2>Conclusion<\/h2>\n<p>XLOOKUP greatly simplifies the process of searching for and retrieving data in Excel and Google Sheets. With its flexible and powerful options, it can accommodate a variety of lookup scenarios with ease, significantly enhancing data manipulation and retrieval tasks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Searches a range or an array, and returns\u00a0an item\u00a0corresponding\u00a0to the\u00a0first match it finds If a match doesn&#8217;t exist,\u00a0then XLOOKUP can return the\u00a0closest (approximate) match<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[200],"tags":[],"class_list":["post-491","post","type-post","status-publish","format-standard","hentry","category-lookup-and-reference"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Excel XLOOKUP Function \u2013 How It Works, Formula Examples and Syntax<\/title>\n<meta name=\"description\" content=\"Learn what the Excel XLOOKUP function does. Clear syntax explanation and useful formula examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/functiontranslator.com\/en\/xlookup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Excel XLOOKUP Function \u2013 How It Works, Formula Examples and Syntax\" \/>\n<meta property=\"og:description\" content=\"Learn what the Excel XLOOKUP function does. Clear syntax explanation and useful formula examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/functiontranslator.com\/en\/xlookup\/\" \/>\n<meta property=\"og:site_name\" content=\"Function Translator\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-15T13:34:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-13T11:37:02+00:00\" \/>\n<meta name=\"author\" content=\"glavadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Excel XLOOKUP Function \u2013 How It Works, Formula Examples and Syntax\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"glavadmin\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/functiontranslator.com\/en\/xlookup\/\",\"url\":\"https:\/\/functiontranslator.com\/en\/xlookup\/\",\"name\":\"Excel XLOOKUP Function \u2013 How It Works, Formula Examples and Syntax\",\"isPartOf\":{\"@id\":\"https:\/\/functiontranslator.com\/no\/#website\"},\"datePublished\":\"2025-07-15T13:34:47+00:00\",\"dateModified\":\"2021-02-13T11:37:02+00:00\",\"author\":{\"@id\":\"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389\"},\"description\":\"Learn what the Excel XLOOKUP function does. Clear syntax explanation and useful formula examples.\",\"breadcrumb\":{\"@id\":\"https:\/\/functiontranslator.com\/en\/xlookup\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/functiontranslator.com\/en\/xlookup\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/functiontranslator.com\/en\/xlookup\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Function Excel\",\"item\":\"https:\/\/functiontranslator.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lookup and reference\",\"item\":\"https:\/\/functiontranslator.com\/en\/lookup-and-reference\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"XLOOKUP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/functiontranslator.com\/no\/#website\",\"url\":\"https:\/\/functiontranslator.com\/no\/\",\"name\":\"Function Translator\",\"description\":\"Excel function translator\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/functiontranslator.com\/no\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389\",\"name\":\"glavadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g\",\"caption\":\"glavadmin\"},\"sameAs\":[\"https:\/\/functiontranslator.com\"],\"url\":\"https:\/\/functiontranslator.com\/en\/author\/glavadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Excel XLOOKUP Function \u2013 How It Works, Formula Examples and Syntax","description":"Learn what the Excel XLOOKUP function does. Clear syntax explanation and useful formula examples.","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:\/\/functiontranslator.com\/en\/xlookup\/","og_locale":"en_US","og_type":"article","og_title":"Excel XLOOKUP Function \u2013 How It Works, Formula Examples and Syntax","og_description":"Learn what the Excel XLOOKUP function does. Clear syntax explanation and useful formula examples.","og_url":"https:\/\/functiontranslator.com\/en\/xlookup\/","og_site_name":"Function Translator","article_published_time":"2025-07-15T13:34:47+00:00","article_modified_time":"2021-02-13T11:37:02+00:00","author":"glavadmin","twitter_card":"summary_large_image","twitter_title":"Excel XLOOKUP Function \u2013 How It Works, Formula Examples and Syntax","twitter_misc":{"Written by":"glavadmin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/functiontranslator.com\/en\/xlookup\/","url":"https:\/\/functiontranslator.com\/en\/xlookup\/","name":"Excel XLOOKUP Function \u2013 How It Works, Formula Examples and Syntax","isPartOf":{"@id":"https:\/\/functiontranslator.com\/no\/#website"},"datePublished":"2025-07-15T13:34:47+00:00","dateModified":"2021-02-13T11:37:02+00:00","author":{"@id":"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389"},"description":"Learn what the Excel XLOOKUP function does. Clear syntax explanation and useful formula examples.","breadcrumb":{"@id":"https:\/\/functiontranslator.com\/en\/xlookup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/functiontranslator.com\/en\/xlookup\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/functiontranslator.com\/en\/xlookup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Function Excel","item":"https:\/\/functiontranslator.com\/en\/"},{"@type":"ListItem","position":2,"name":"Lookup and reference","item":"https:\/\/functiontranslator.com\/en\/lookup-and-reference\/"},{"@type":"ListItem","position":3,"name":"XLOOKUP"}]},{"@type":"WebSite","@id":"https:\/\/functiontranslator.com\/no\/#website","url":"https:\/\/functiontranslator.com\/no\/","name":"Function Translator","description":"Excel function translator","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/functiontranslator.com\/no\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389","name":"glavadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g","caption":"glavadmin"},"sameAs":["https:\/\/functiontranslator.com"],"url":"https:\/\/functiontranslator.com\/en\/author\/glavadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/posts\/491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/comments?post=491"}],"version-history":[{"count":3,"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/posts\/491\/revisions"}],"predecessor-version":[{"id":3382,"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/posts\/491\/revisions\/3382"}],"wp:attachment":[{"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/media?parent=491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/categories?post=491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/functiontranslator.com\/en\/wp-json\/wp\/v2\/tags?post=491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}