{"id":50632,"date":"2024-09-26T23:21:52","date_gmt":"2024-09-26T21:21:52","guid":{"rendered":"https:\/\/blog.sheetgo.com\/?p=50632"},"modified":"2026-10-07T16:08:54","modified_gmt":"2026-10-07T14:08:54","slug":"comment-utiliser-xlookup-dans-google-sheets-formules-et-exemples","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/fr\/blog\/google-sheets-features\/how-to-use-xlookup-in-google-sheets-formulas-and-examples\/","title":{"rendered":"Comment utiliser XLOOKUP dans Google Sheets (avec des exemples)"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221; da_disable_devices=&#8221;off|off|off&#8221;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>According to <a href=\"https:\/\/explodingtopics.com\/blog\/google-workspace-stats\" target=\"_blank\" rel=\"noopener\">Exploding Topics<\/a>, over 900 million people use Google Sheets monthly. But how many use XLOOKUP in Google Sheets?<\/p>\n<p>This tutorial will show you how to use it to <a href=\"https:\/\/www.sheetgo.com\/blog\/data-science\/data-aggregation\/\">pull data<\/a> from the same spreadsheet or two different spreadsheets.<\/p>\n<p>It also covers the one job where FILTER works better than XLOOKUP: returning every match.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>In this guide:<\/p>\n<ul>\n<li><a href=\"#what-is-xlookup\">What XLOOKUP does and its six arguments<\/a><\/li>\n<li><a href=\"#how-to-use-xlookup-in-google-sheets-step\">How to use XLOOKUP, step by step<\/a><\/li>\n<li><a href=\"#xlookup-from-another-sheet\">XLOOKUP from another sheet<\/a><\/li>\n<li><a href=\"#xlookup-between-two-spreadsheets\">XLOOKUP between two spreadsheets<\/a><\/li>\n<li><a href=\"#xlookup-examples-in-google-sheets\">Examples: horizontal lookups, multiple criteria, wildcards, named ranges, default values, FILTER, and last or closest matches<\/a><\/li>\n<li><a href=\"#xlookup-vs-vlookup\">XLOOKUP vs VLOOKUP<\/a><\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2 id=\"what-is-xlookup\"><b>What is XLOOKUP in Google Sheets?<\/b><\/h2>\n<p>In simple terms, XLOOKUP helps you find specific information in your Google Sheets. You tell XLOOKUP what to look for (like a student&#8217;s grade) and where to look (which column in your gradebook). Then, it quickly finds the matching information and returns it to you.<\/p>\n<p>XLOOKUP is a more flexible alternative to older functions like <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/vlookup-importrange\/\">VLOOKUP<\/a> and <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/use-hlookup-formula-google-sheets\/\">HLOOKUP<\/a>.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>XLOOKUP syntax and arguments<\/h3>\n<p>XLOOKUP takes six arguments. Only the first three are required.<\/p>\n<blockquote>\n<p>=XLOOKUP(search_key, lookup_range, result_range, [missing_value], [match_mode], [search_mode])<\/p>\n<\/blockquote>\n<table>\n<thead>\n<tr>\n<th>Argument<\/th>\n<th>Required<\/th>\n<th>What it takes<\/th>\n<th>Default<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>search_key<\/td>\n<td>Yes<\/td>\n<td>The value to find: text, a number, or a cell reference<\/td>\n<td>None<\/td>\n<\/tr>\n<tr>\n<td>lookup_range<\/td>\n<td>Yes<\/td>\n<td>The single row or column to search<\/td>\n<td>None<\/td>\n<\/tr>\n<tr>\n<td>result_range<\/td>\n<td>Yes<\/td>\n<td>The rows or columns to return values from, as long as lookup_range<\/td>\n<td>None<\/td>\n<\/tr>\n<tr>\n<td>missing_value<\/td>\n<td>No<\/td>\n<td>What to show when nothing matches<\/td>\n<td>#N\/A<\/td>\n<\/tr>\n<tr>\n<td>match_mode<\/td>\n<td>No<\/td>\n<td>0 exact match, 1 exact or next larger, -1 exact or next smaller, 2 wildcard match<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>search_mode<\/td>\n<td>No<\/td>\n<td>1 first to last, -1 last to first, 2 binary search on data sorted in ascending order, -2 binary search on data sorted in descending order<\/td>\n<td>1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Excel names the same arguments lookup_value, lookup_array, return_array, and if_not_found, and some examples below use those names.<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;how-to-use-xlookup-in-google-sheets-step&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How to use XLOOKUP in Google Sheets: step by step<\/h2>\n<p>In this section, you will learn how to use XLOOKUP vertically to find an exact match using a single search key.<\/p>\n<p><strong>1.<\/strong> Open Google Sheets to the spreadsheet containing your table.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-sales-table.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 sales table with id, name, email, product, amount and sales agent columns&#8221; title_text=&#8221;Sales table with id, name, email, product, amount and sales agent columns&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2.<\/strong> Instead of typing the search key directly into the function, you can type it into a cell and later use the cell reference.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-search-key-cell.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 last name Gabbetis typed as the search key next to the table&#8221; title_text=&#8221;Last name Gabbetis typed as the search key next to the table&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3.<\/strong> Type the XLOOKUP function and select the cell with the search key as the first parameter.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-first-argument.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 formula started with cell I4 as the search key&#8221; title_text=&#8221;Formula started with cell I4 as the search key&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4.<\/strong> For the second parameter, select the column where you want to find the search key.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-lookup-range.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 last_name column C:C selected as the lookup range&#8221; title_text=&#8221;Last_name column C:C selected as the lookup range&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>5.<\/strong> For the third parameter, select the column from which you want the result. Skip the optional parameters to get the defaults.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-result-range.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 email column D:D selected as the result range&#8221; title_text=&#8221;Email column D:D selected as the result range&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>6.<\/strong> Close the parenthesis and press \u2018Enter\u2019. You have your result.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-result.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 email address returned for the last name Gabbetis&#8221; title_text=&#8221;Email address returned for the last name Gabbetis&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2 id=\"xlookup-from-another-sheet\"><b>How to use XLOOKUP from another sheet<\/b><\/h2>\n<p>Let\u2019s say you are a teacher and use a Google Sheet to track your students&#8217; grades. We will name the spreadsheet \u201cStudents Exams.\u201d<\/p>\n<p>Now, the spreadsheet has two sheets:<\/p>\n<ul>\n<li>One called \u201cStudents\u201d \u2014 It has the students\u2019 names and ID numbers and<\/li>\n<li>One called \u201cTest Scores\u201d \u2014 It has the students\u2019 ID numbers and scores.<\/li>\n<\/ul>\n<p>\u2014 Sheet 1: Students<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_1.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 Students sheet with ID numbers, names and an empty Test Score column&#8221; title_text=&#8221;Students sheet with ID numbers, names and an empty Test Score column&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>\u2014 Sheet 2: Test Scores<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_2.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 Test Scores sheet with ID numbers and scores&#8221; title_text=&#8221;Test Scores sheet with ID numbers and scores&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Keep in mind that these two sheets are in the same spreadsheet. We will show you how to use XLOOKUP in two separate spreadsheets later.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_3.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 Students and Test Scores tabs in the same spreadsheet&#8221; title_text=&#8221;Students and Test Scores tabs in the same spreadsheet&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>You want to see each student&#8217;s score next to their name in the \u201cStudents\u201d sheet. Let&#8217;s choose John Doe.\u00a0<\/p>\n<ol>\n<li> In the cell under &#8220;Test Score&#8221; for John Doe, use this XLOOKUP formula:<\/li>\n<\/ol>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=XLOOKUP(A2, &#8216;Test Scores&#8217;!A:A, &#8216;Test Scores&#8217;!B:B, &#8220;Not Found&#8221;)<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_4.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 formula that reads the Test Scores sheet typed in cell C2&#8243; title_text=&#8221;Formula that reads the Test Scores sheet typed in cell C2&#8243; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Let\u2019s break this formula down:<\/p>\n<ul>\n<li><b>Lookup Value (A2):<\/b> The ID number you&#8217;re looking for.<\/li>\n<li><b>Lookup Array (&#8216;Test Scores&#8217;!A:A):<\/b> This is the column in the \u201cTest Scores\u201d sheet where the XLOOKUP function should find the ID numbers.<\/li>\n<li><b>Return Array (&#8216;Test Scores&#8217;!B:B):<\/b> If it finds a match, it returns the corresponding value from the Return Array (the student&#8217;s score).<\/li>\n<li><b>If Not Found (&#8220;Not Found&#8221;):<\/b> If it doesn&#8217;t find a match, it displays &#8220;Not Found.&#8221;<\/li>\n<\/ul>\n<p>In simple terms, this is what the formula says:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Find this student&#8217;s ID number on the Test Scores sheet. If you find it, tell me their score. If you don&#8217;t find it, just say &#8216;Not Found&#8217;.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>2. Press \u201cEnter\u201d on your keyboard or click anywhere on your sheet. The score will appear.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_5.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 score 85 returned for John Doe&#8221; title_text=&#8221;Score 85 returned for John Doe&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><b>Recommended reading:<\/b> <a href=\"https:\/\/www.sheetgo.com\/blog\/excel-functions\/xlookup-excel\/\">How to use the XLOOKUP function in Excel?<\/a><\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2 id=\"xlookup-between-two-spreadsheets\"><b>How do you use the XLOOKUP function in two separate Google Sheets?<\/b><\/h2>\n<p>Can you use the XLOOKUP function in two separate Google Sheets?<\/p>\n<p>Yes. Wrap the lookup range and the result range in IMPORTRANGE so XLOOKUP reads them from the other file. The first time you connect the two files, Google Sheets asks you to allow access.<\/p>\n<p>How does it work?<\/p>\n<p>Use this formula:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=XLOOKUP(A2, IMPORTRANGE(&#8220;https:\/\/docs.google.com\/spreadsheets\/d\/sheet-id&#8221;, &#8220;Sheet1!A:A&#8221;), IMPORTRANGE(&#8220;https:\/\/docs.google.com\/spreadsheets\/d\/sheet-id&#8221;, &#8220;Sheet1!B:B&#8221;), &#8220;Not Found&#8221;)<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Let\u2019s return to our teacher&#8217;s example.<\/p>\n<p>Imagine you are collaborating with another teacher on a project. You each have your own Google Sheet containing student data.<\/p>\n<p>Your Google Sheet is called \u201cStudents\u201d and contains student names and ID numbers.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_6.webp&#8221; alt=&#8221;XLOOKUP between two spreadsheets in Google Sheets \u2014 your sheet with ID numbers and names&#8221; title_text=&#8221;Your sheet with ID numbers and names&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>On the other hand, your colleague&#8217;s sheet is called \u201cTest Scores\u201d and contains student ID numbers and their scores on a recent test.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_7.webp&#8221; alt=&#8221;XLOOKUP between two spreadsheets in Google Sheets \u2014 colleague&#8217;s sheet with ID numbers and scores&#8221; title_text=&#8221;Colleague&#8217;s sheet with ID numbers and scores&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>You want to combine this information into your \u201cStudents\u201d sheet to see each student&#8217;s score next to their name.<\/p>\n<p>How do you do this?<\/p>\n<ol>\n<li> Open your colleague\u2019s sheet and copy the ID from the URL. It starts after \u2018\/d\/\u2019 and ends before the next \u201c\/.\u201d<\/li>\n<\/ol>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_8.webp&#8221; alt=&#8221;XLOOKUP between two spreadsheets in Google Sheets \u2014 spreadsheet ID highlighted in the Test Scores URL&#8221; title_text=&#8221;Spreadsheet ID highlighted in the Test Scores URL&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<ol start=\"2\">\n<li> Replace the two \u201csheet-id\u201d in the formula below with the ID you just copied.<\/li>\n<\/ol>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=XLOOKUP(A2, IMPORTRANGE(&#8220;https:\/\/docs.google.com\/spreadsheets\/d\/15MmbjgdGPJ8VwJvYU4BY6GpDDqm59QEut-kQ65Z8er0&#8221;, &#8220;Sheet1!A:A&#8221;), IMPORTRANGE(&#8220;https:\/\/docs.google.com\/spreadsheets\/d\/15MmbjgdGPJ8VwJvYU4BY6GpDDqm59QEut-kQ65Z8er0&#8221;, &#8220;Sheet1!B:B&#8221;), &#8220;Not Found&#8221;)<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<ol start=\"3\">\n<li> Copy the name of the sheet from your colleague\u2019s spreadsheet.<\/li>\n<\/ol>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_9.webp&#8221; alt=&#8221;XLOOKUP between two spreadsheets in Google Sheets \u2014 Test Scores tab name at the bottom of the file&#8221; title_text=&#8221;Test Scores tab name at the bottom of the file&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p style=\"padding-left: 40px;\">4. Replace the two \u201cSheet1\u201d in the formula with your colleague\u2019s sheet name, \u201cTest Scores.\u201d This is what your final formula will look like:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=XLOOKUP(A2, IMPORTRANGE(&#8220;https:\/\/docs.google.com\/spreadsheets\/d\/15MmbjgdGPJ8VwJvYU4BY6GpDDqm59QEut-kQ65Z8er0&#8221;, &#8220;Test Scores!A:A&#8221;), IMPORTRANGE(&#8220;https:\/\/docs.google.com\/spreadsheets\/d\/15MmbjgdGPJ8VwJvYU4BY6GpDDqm59QEut-kQ65Z8er0&#8221;, &#8220;Test Scores!B:B&#8221;), &#8220;Not Found&#8221;)<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p style=\"padding-left: 40px;\">5. In the cell under &#8220;Test Score&#8221; for Jane Smith, use the XLOOKUP formula above.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_10.webp&#8221; alt=&#8221;XLOOKUP between two spreadsheets in Google Sheets \u2014 XLOOKUP with IMPORTRANGE typed in cell C2&#8243; title_text=&#8221;XLOOKUP with IMPORTRANGE typed in cell C2&#8243; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p style=\"padding-left: 40px;\">6. Press \u201cEnter\u201d on your keyboard or click anywhere on your sheet. The score will appear.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_11.webp&#8221; alt=&#8221;XLOOKUP between two spreadsheets in Google Sheets \u2014 score 85 returned for John Doe from the other file&#8221; title_text=&#8221;Score 85 returned for John Doe from the other file&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p style=\"padding-left: 40px;\">7. If you want to get Jane Smith\u2019s score in row 3, change \u201c=XLOOKUP(A2\u201d to \u201c=XLOOKUP(A3.\u201d<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_12.webp&#8221; alt=&#8221;XLOOKUP between two spreadsheets in Google Sheets \u2014 Jane Smith&#8217;s ID 102 and score 78 highlighted&#8221; title_text=&#8221;Jane Smith&#8217;s ID 102 and score 78 highlighted&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Old formula with (A2:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=XLOOKUP(A2, IMPORTRANGE(&#8220;https:\/\/docs.google.com\/spreadsheets\/d\/15MmbjgdGPJ8VwJvYU4BY6GpDDqm59QEut-kQ65Z8er0&#8221;, &#8220;Test Scores!A:A&#8221;), IMPORTRANGE(&#8220;https:\/\/docs.google.com\/spreadsheets\/d\/15MmbjgdGPJ8VwJvYU4BY6GpDDqm59QEut-kQ65Z8er0&#8221;, &#8220;Test Scores!B:B&#8221;), &#8220;Not Found&#8221;)<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>New formula with (A3:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=XLOOKUP(A3, IMPORTRANGE(&#8220;https:\/\/docs.google.com\/spreadsheets\/d\/15MmbjgdGPJ8VwJvYU4BY6GpDDqm59QEut-kQ65Z8er0&#8221;, &#8220;Test Scores!A:A&#8221;), IMPORTRANGE(&#8220;https:\/\/docs.google.com\/spreadsheets\/d\/15MmbjgdGPJ8VwJvYU4BY6GpDDqm59QEut-kQ65Z8er0&#8221;, &#8220;Test Scores!B:B&#8221;), &#8220;Not Found&#8221;)<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_13.webp&#8221; alt=&#8221;XLOOKUP between two spreadsheets in Google Sheets \u2014 formula changed to A3 for Jane Smith in row 3&#8243; title_text=&#8221;Formula changed to A3 for Jane Smith in row 3&#8243; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;xlookup-examples-in-google-sheets&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>XLOOKUP examples in Google Sheets<\/h2>\n<p>Now that you know how to use XLOOKUP to find an exact match for a single value, it\u2019s time to learn about different ways of using it. In the examples below, you will learn to use XLOOKUP to perform horizontal lookups, search using multiple criteria, return several columns at once, search using wildcards, and use named ranges. The last examples show a default value for missing matches, FILTER for returning every match, and how to find the last or the closest match.<\/p>\n<h3>Horizontal XLOOKUP (instead of HLOOKUP)<\/h3>\n<p>XLOOKUP also searches across a row, so you can use it instead of HLOOKUP. Follow the steps below to perform a horizontal lookup.<\/p>\n<p><strong>1.<\/strong> In an empty cell, type the XLOOKUP formula and add the search key as the first parameter. In this case, the search key will be the column header you want to match.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-horizontal-search-key.webp&#8221; alt=&#8221;Horizontal XLOOKUP in Google Sheets \u2014 column header email used as the search key&#8221; title_text=&#8221;Column header email used as the search key&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2.<\/strong> For the second parameter, select the row where you want to find the search key. In this case, the headers are in row 1.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-horizontal-lookup-range.webp&#8221; alt=&#8221;Horizontal XLOOKUP in Google Sheets \u2014 header row 1:1 selected as the lookup range&#8221; title_text=&#8221;Header row 1:1 selected as the lookup range&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3.<\/strong> For the third parameter, specify the row from which you want the result. Skip the optional parameters to get the defaults.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-horizontal-result-range.webp&#8221; alt=&#8221;Horizontal XLOOKUP in Google Sheets \u2014 row 15 selected as the result range&#8221; title_text=&#8221;Row 15 selected as the result range&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4.<\/strong> Close the parenthesis and press \u2018Enter\u2019 to get the result.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-horizontal-result.webp&#8221; alt=&#8221;Horizontal XLOOKUP in Google Sheets \u2014 email from row 15 returned by the formula&#8221; title_text=&#8221;Email from row 15 returned by the formula&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>XLOOKUP with multiple criteria<\/h3>\n<p>To search for multiple values using XLOOKUP, you can combine it with ARRAYFORMULA.<\/p>\n<p><strong>1.<\/strong> In an empty cell, type the XLOOKUP function.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-multiple-criteria-function.webp&#8221; alt=&#8221;XLOOKUP with multiple criteria in Google Sheets \u2014 formula typed next to the first and last name keys&#8221; title_text=&#8221;Formula typed next to the first and last name keys&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2.<\/strong> For the first parameter, select the first search key, add an ampersand (&amp;), and select the second search key.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-multiple-criteria-keys.webp&#8221; alt=&#8221;XLOOKUP with multiple criteria in Google Sheets \u2014 search keys I14 and I15 joined with an ampersand&#8221; title_text=&#8221;Search keys I14 and I15 joined with an ampersand&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3.<\/strong> For the second parameter, type the ARRAYFORMULA function and select the columns where you want to find the search keys, joined by an ampersand (&amp;).<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-multiple-criteria-arrayformula.webp&#8221; alt=&#8221;XLOOKUP with multiple criteria in Google Sheets \u2014 ARRAYFORMULA joining the first and last name columns&#8221; title_text=&#8221;ARRAYFORMULA joining the first and last name columns&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4.<\/strong> For the third parameter, select the column from which you want the result returned.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-multiple-criteria-result-range.webp&#8221; alt=&#8221;XLOOKUP with multiple criteria in Google Sheets \u2014 amount column F:F selected as the result range&#8221; title_text=&#8221;Amount column F:F selected as the result range&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>5.<\/strong> Close the parenthesis and press \u2018Enter\u2019 to get the result.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-multiple-criteria-result.webp&#8221; alt=&#8221;XLOOKUP with multiple criteria in Google Sheets \u2014 amount $1,590.52 returned for Inessa Hoyes&#8221; title_text=&#8221;Amount $1,590.52 returned for Inessa Hoyes&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Return several columns with one XLOOKUP<\/h3>\n<p>To return several values from the matching row, such as the email, product, and amount, you can use the ARRAYFORMULA function. XLOOKUP still returns only the first match. To get every matching row, use FILTER, as shown further down.<\/p>\n<p><strong>1.<\/strong> In an empty cell, type the XLOOKUP function and add the search key as the first parameter.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-several-columns-search-key.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 last name Possa used as the search key to return several columns&#8221; title_text=&#8221;Last name Possa used as the search key to return several columns&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2.<\/strong> For the second parameter, select the column where you want to find the search key.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-several-columns-lookup-range.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 last_name column picked as the lookup range for Possa&#8221; title_text=&#8221;Last_name column picked as the lookup range for Possa&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3.<\/strong> For the third parameter, add the ARRAYFORMULA function and select the columns from which you want the results.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-several-columns-arrayformula.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 ARRAYFORMULA(D:F) used as the result range&#8221; title_text=&#8221;ARRAYFORMULA(D:F) used as the result range&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4.<\/strong> Close both parentheses and press \u2018Enter\u2019 to see the results.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-several-columns-result.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 email, product and amount returned in one row for Possa&#8221; title_text=&#8221;Email, product and amount returned in one row for Possa&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>XLOOKUP with wildcards<\/h3>\n<p>If you only have or remember bits and pieces of your search key, you can use wildcard characters to find a match.<\/p>\n<ul>\n<li><strong>*<\/strong> matches zero or more characters.<\/li>\n<li><strong>?<\/strong> matches exactly one character.<\/li>\n<li><strong>~<\/strong> nullifies wildcard characters so you can search for them.<\/li>\n<\/ul>\n<p><strong>1.<\/strong> Type the partial search key into a cell for later reference.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-wildcard-partial-key.webp&#8221; alt=&#8221;XLOOKUP with wildcards in Google Sheets \u2014 partial search key bridge typed in a cell&#8221; title_text=&#8221;Partial search key bridge typed in a cell&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2.<\/strong> In an empty cell, type the XLOOKUP function.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-wildcard-function.webp&#8221; alt=&#8221;XLOOKUP with wildcards in Google Sheets \u2014 formula typed next to the partial search key&#8221; title_text=&#8221;Formula typed next to the partial search key&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3.<\/strong> Add the wildcard and partial search key, as shown below. The wildcard character should be between quotation marks and joined to the partial search key using an ampersand (&amp;).<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-wildcard-asterisk.webp&#8221; alt=&#8221;XLOOKUP with wildcards in Google Sheets \u2014 asterisk joined to the partial search key with an ampersand&#8221; title_text=&#8221;Asterisk joined to the partial search key with an ampersand&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4.<\/strong> For the second parameter, select the column where you want to find the match.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-wildcard-lookup-range.webp&#8221; alt=&#8221;XLOOKUP with wildcards in Google Sheets \u2014 last_name column C:C selected as the lookup range&#8221; title_text=&#8221;Last_name column C:C selected as the lookup range&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>5.<\/strong> For the third parameter, select the column from which you want to get the result.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-wildcard-result-range.webp&#8221; alt=&#8221;XLOOKUP with wildcards in Google Sheets \u2014 email column D:D selected as the result range&#8221; title_text=&#8221;Email column D:D selected as the result range&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>6.<\/strong> Since you\u2019re searching using a wildcard, you\u2019ll need to specify that the fifth parameter is \u201c2\u201d. However, you don\u2019t need to specify the fourth and sixth parameters if you want the default values.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-wildcard-result.webp&#8221; alt=&#8221;XLOOKUP with wildcards in Google Sheets \u2014 match_mode 2 added and the matching email returned&#8221; title_text=&#8221;Match_mode 2 added and the matching email returned&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>XLOOKUP with named ranges<\/h3>\n<p>Finally, let\u2019s see how you can use named ranges in XLOOKUP to make the process even easier.<\/p>\n<p><strong>1.<\/strong> Open the spreadsheet with your table and go to Data &gt; Named ranges.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-named-ranges-menu.webp&#8221; alt=&#8221;XLOOKUP with named ranges in Google Sheets \u2014 Named ranges in the Data menu&#8221; title_text=&#8221;Named ranges in the Data menu&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2.<\/strong> From the sidebar, click \u201cAdd a range\u201d.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-add-a-range.webp&#8221; alt=&#8221;XLOOKUP with named ranges in Google Sheets \u2014 Add a range in the Named ranges sidebar&#8221; title_text=&#8221;Add a range in the Named ranges sidebar&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3.<\/strong> Select the column you want to name and type in the name. Click \u201cDone\u201d.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-name-range.webp&#8221; alt=&#8221;XLOOKUP with named ranges in Google Sheets \u2014 range B2:B1001 named first_name&#8221; title_text=&#8221;Range B2:B1001 named first_name&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4.<\/strong> Repeat steps 2 and 3 until you\u2019ve named all the necessary columns.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-named-ranges-list.webp&#8221; alt=&#8221;XLOOKUP with named ranges in Google Sheets \u2014 named ranges listed for every column of the table&#8221; title_text=&#8221;Named ranges listed for every column of the table&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>5.<\/strong> In an empty cell, type the XLOOKUP function and add the search key.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-named-search-key.webp&#8221; alt=&#8221;XLOOKUP with named ranges in Google Sheets \u2014 formula typed with the search key Rennick&#8221; title_text=&#8221;Formula typed with the search key Rennick&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>6.<\/strong> For the second parameter, start typing the name of the column to search and select it from the dropdown.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-named-lookup-range.webp&#8221; alt=&#8221;XLOOKUP with named ranges in Google Sheets \u2014 last_name range suggested as the lookup range&#8221; title_text=&#8221;Last_name range suggested as the lookup range&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>7.<\/strong> For the third parameter, start typing the name of the column to return and select it like before.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-named-result-range.webp&#8221; alt=&#8221;XLOOKUP with named ranges in Google Sheets \u2014 amount range selected as the result range&#8221; title_text=&#8221;Amount range selected as the result range&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>8.<\/strong> Close the parenthesis and press \u2018Enter\u2019 to see the result.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/xlookup-google-sheets-named-result.webp&#8221; alt=&#8221;XLOOKUP with named ranges in Google Sheets \u2014 amount $303.28 returned for Rennick&#8221; title_text=&#8221;Amount $303.28 returned for Rennick&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3><b>Show a default value when there&#8217;s no match<\/b><\/h3>\n<p>You can use XLOOKUP in Google Sheets to find missing values in a dataset by comparing two lists (e.g., a list of existing products and a list of new products).<\/p>\n<p>Let\u2019s look at an example.<\/p>\n<p>You&#8217;re a sales manager tracking employee performance in one Google Sheet. You have:<\/p>\n<ul>\n<li>Sheet 1 (Employee Data): Contains employee names and ID numbers.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_39.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 Employee Data sheet with employee names and IDs&#8221; title_text=&#8221;Employee Data sheet with employee names and IDs&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<ul>\n<li>Sheet 2: Contains employee ID numbers and their sales figures.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_40.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 Sales sheet with figures for employees 101, 103 and 105&#8243; title_text=&#8221;Sales sheet with figures for employees 101, 103 and 105&#8243; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<ul>\n<li>Sheet 3: Contains the <a href=\"https:\/\/www.sheetgo.com\/blog\/data-science\/what-is-data-consolidation\/\">consolidated information<\/a>. However, some employees do not have sales data, as shown below.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_41.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 Consolidated sheet with blank sales for Jane Smith and Emily Brown&#8221; title_text=&#8221;Consolidated sheet with blank sales for Jane Smith and Emily Brown&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Keep in mind that these three sheets are in the same spreadsheet.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_42.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 Employee Data, Sales and Consolidated tabs in one spreadsheet&#8221; title_text=&#8221;Employee Data, Sales and Consolidated tabs in one spreadsheet&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<ol>\n<li> Open Sheet 3 (\u201cConsolidated\u201d in our example).<\/li>\n<li> In cell C2 of Consolidated, enter the following XLOOKUP formula:<\/li>\n<\/ol>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=XLOOKUP(B2, Sheet2!A:A, Sheet2!B:B, 0)<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>This formula will:<\/p>\n<ol>\n<li>Look for the Employee ID in B2 within the range of Employee IDs in Sheet 2 (Sheet2!A:A).<\/li>\n<li>If found, it will return the corresponding Sales Figure from Sheet 2 (Sheet2!B:B).<\/li>\n<li>If not found, it will return the value 0, indicating no sales.<\/li>\n<\/ol>\n<p>Keep in mind that you need to edit the formula before using it. For example, my sheet is called \u201cSales,\u201d not \u201cSheet2\u201d and the \u201c102\u201d ID is in row B3, not B2. So, my new formula will be:<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=XLOOKUP(B3, Sales!A:A, Sales!B:B, 0)<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Use it in the cell and press Enter on your keyboard.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_44.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 0 returned for Jane Smith, who has no sales figure&#8221; title_text=&#8221;0 returned for Jane Smith, who has no sales figure&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3><b>Return every match with FILTER<\/b><\/h3>\n<p>People often ask us if XLOOKUP can return multiple results in Google Sheets.<\/p>\n<p>The best way to answer this question is through an example.<\/p>\n<p>Let\u2019s say you manage a small bookstore and keep track of your inventory in a Google Sheet. Your sheet has the following columns:<\/p>\n<ul>\n<li>Book Title<\/li>\n<li>Author<\/li>\n<li>ISBN<\/li>\n<li>Quantity in Stock<\/li>\n<li>Price<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_45.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 bookstore inventory with title, author, ISBN, stock and price columns&#8221; title_text=&#8221;Bookstore inventory with title, author, ISBN, stock and price columns&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>You want to find all the books a specific author wrote and their ISBNs and quantities in stock.<\/p>\n<ol>\n<li> Identify your lookup value. In this example, I will go for an author&#8217;s name since it\u2019s the value I want to find: J.K. Rowling.<\/li>\n<li> Identify the lookup array, the column containing the author names: Author.<\/li>\n<li>Identify the return arrays, the columns you want to return data from:\n<ul>\n<li>ISBN<\/li>\n<li>Quantity in Stock<\/li>\n<\/ul>\n<\/li>\n<li> Create the XLOOKUP formula:<\/li>\n<\/ol>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=ARRAYFORMULA(XLOOKUP(lookup_value, lookup_array, {return_array1, return_array2}, &#8220;&#8221;, 0))<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Remember that you need to edit this formula to match your scenario.<\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=ARRAYFORMULA(XLOOKUP(&#8220;J.K. Rowling&#8221;, B2:B100, {C2:C100, D2:D100}, &#8220;&#8221;, 0))<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>5. Open your sheet and use your formula in an empty cell.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_46.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 ARRAYFORMULA with XLOOKUP for J.K. Rowling typed in cell F2&#8243; title_text=&#8221;ARRAYFORMULA with XLOOKUP for J.K. Rowling typed in cell F2&#8243; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>6. Press \u201cEnter.\u201d As you can see, XLOOKUP only returns the first matching book, although the formula checks every row.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_47.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 ISBN and stock of only the first J.K. Rowling book returned&#8221; title_text=&#8221;ISBN and stock of only the first J.K. Rowling book returned&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Can XLOOKUP return every matching row in Google Sheets?<\/p>\n<p>Not really. XLOOKUP typically returns a <i>single<\/i> match or the first match it finds. Unfortunately, it does not natively support returning multiple matches as FILTER does. So, in its standard form, XLOOKUP is unsuitable for pulling various rows.<\/p>\n<p>Did you notice that I mentioned FILTER? How does it work?<\/p>\n<ol start=\"7\">\n<li> Change your formula to:<\/li>\n<\/ol>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=ARRAYFORMULA(FILTER({C2:C100, D2:D100}, B2:B100 = &#8220;J.K. Rowling&#8221;))<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_50.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 FILTER formula for J.K. Rowling typed in cell F2&#8243; title_text=&#8221;FILTER formula for J.K. Rowling typed in cell F2&#8243; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p style=\"padding-left: 40px;\">8. Press \u201cEnter.\u201d And voil\u00e0, FILTER pulled data from multiple rows.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/how_to_use_xlookup_in_google_sheets_51.webp&#8221; alt=&#8221;XLOOKUP in Google Sheets \u2014 FILTER returning the ISBN and stock of every J.K. Rowling book&#8221; title_text=&#8221;FILTER returning the ISBN and stock of every J.K. Rowling book&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Find the last match or the closest value<\/h3>\n<p>The last two arguments change how XLOOKUP searches. These examples use the sales table from the step-by-step section, where column F holds the amount and column G the sales agent.<\/p>\n<p>To get the amount of the last sale in the list for Agent2, set search_mode to -1 so XLOOKUP searches from the bottom up:<\/p>\n<blockquote>\n<p>=XLOOKUP(&quot;Agent2&quot;, G:G, F:F, &quot;Not found&quot;, 0, -1)<\/p>\n<\/blockquote>\n<p>To find the closest value instead of an exact one, set match_mode to -1 (next smaller) or 1 (next larger). Say K2:K5 holds sales thresholds and L2:L5 the commission rate for each. This formula returns the rate for the highest threshold that isn&#8217;t above the amount in F2:<\/p>\n<blockquote>\n<p>=XLOOKUP(F2, K2:K5, L2:L5, , -1)<\/p>\n<\/blockquote>\n<p>Neither formula needs sorted data. Only the binary search modes, 2 and -2, do.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2 id=\"xlookup-vs-vlookup\"><b>XLOOKUP vs VLOOKUP: what&#8217;s the difference?<\/b><\/h2>\n<p><a href=\"https:\/\/www.sheetgo.com\/blog\/excel-functions\/vlookup-excel\/\">VLOOKUP<\/a> searches vertically, from left to right, within a table (hence the &#8220;V&#8221;); the lookup value must be in the first column. XLOOKUP, however, is more flexible. It can search vertically and horizontally; you don\u2019t need to specify a column index.<\/p>\n<p>VLOOKUP can also only return values to the right of the lookup column, while XLOOKUP can return values from either side.<\/p>\n<p>Here is the difference in terms of syntax:<\/p>\n<p><b>VLOOKUP<\/b><\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><b>XLOOKUP<\/b><\/p>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.24.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;conclusion&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Conclusion<\/h2>\n<p>As you have seen, the Google Sheets\u2019 XLOOKUP function is more powerful than VLOOKUP and HLOOKUP, and easier to use than alternatives like INDEX &amp; MATCH. You\u2019ve reviewed the function and its syntax and now know how to use XLOOKUP to do vertical and horizontal lookups for a single exact match. You also know how to pull data from another sheet or another file, search with multiple criteria or wildcards, and return several columns at once. When a lookup comes up empty, missing_value gives you a default, and when you need every match, FILTER does what XLOOKUP can&#8217;t.<\/p>\n<p>If you repeat the same lookups across several files every week, <a href=\"https:\/\/www.sheetgo.com\/automations\/\">Sheetgo<\/a>, an AI-powered data automation platform, can connect those spreadsheets and keep the combined data updated on a schedule, without IMPORTRANGE formulas to maintain.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>According to Exploding Topics, over 900 million people use Google Sheets monthly. But how many use XLOOKUP in Google Sheets? This tutorial will show you how to use it to pull data from the same spreadsheet or two different spreadsheets. It also covers the one job where FILTER works better than XLOOKUP: returning every match. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":44470,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[37],"tags":[39,28],"class_list":["post-50632","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-features","tag-connections-t","tag-spreadsheets"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/50632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/comments?post=50632"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/50632\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media\/44470"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media?parent=50632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/categories?post=50632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/tags?post=50632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}