Use map(), like this:

=map(A2:A, lambda(a, xlookup(a, Sheet2!A2:A, Sheet2!D2:G)))

See map() and lambda().

Answer from doubleunary on Stack Exchange
🌐
Reddit
reddit.com › r/googlesheets › is it possible to use arrayformula with xlookup without using the same lookup and result range for each row?
r/googlesheets on Reddit: Is it possible to use ARRAYFORMULA with XLOOKUP without using the same lookup and result range for each row?
September 17, 2022 -

Basically, I have a sheet that has some data where each row is in the following format:

A B C D E F G H
1 a b c 1 2 3 <a/b/c> ?<1/2/3>
2 d e f 4 5 6 <d/e/f> ?<4/5/6>

The first three and second three columns correspond with each other (a matches to 1, b matches to 2, c to 3). Column G will be one of the values in columns A-C and I want column H (the ?) to be the corresponding value from columns D-F.

I was able to get this working on for a single row at a time using

=XLOOKUP(G1, A1:C1, D1:F1)

But this would require me to manually extend the formula down to each row I want to apply it to. So I was looking into using ARRAYFORMULA in order to automatically generate this value as new rows are added to the sheet. I tried doing this with something like this:

=ARRAYFORMULA(XLOOKUP(G1:G, A1:C1, D1:F1))

However, it seems to do the lookups against the cells in row 1 every time, rather than doing it on the next row corresponding to the current iteration of G that is being calculated.

Does anyone know if there is any way to have the lookup/result ranges in the XLOOKUP automatically match the row that is being calculated by the ARRAYFORMULA? Or maybe I'm going about this the wrong way, in which case any advice would be appreciated!

🌐
Coupler.io Blog
blog.coupler.io › home › xlookup google sheets explained with 9 examples
XLOOKUP Google Sheets Guide (With Examples) | Coupler.io Blog
August 5, 2025 - If you need to add or remove any data, the ARRAYFORMULA will make sure the relevant XLOOKUP formula is in place.
Discussions

XLOOKUP and ARRAYFORMULA, is there a better way? - Google Docs Editors Community
Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on More on support.google.com
🌐 support.google.com
Google Sheets - Array Formula with Xlookup and Importrange - Stack Overflow
It uses an Xlookup (in Column G) ... sheet (Gift Aid List). If it finds a match it uses ImportRange to import columns C thru F from the membership list. If it can't find anything it writes "No GA" =XLOOKUP(B4:B, IMPORTRANGE($G$2, "Gift Aid List!H:H"), IMPORTRANGE($G$2, "Gift Aid List!C:F"),"No GA",0) This works well, but I want to use an Arrayformula to copy this ... More on stackoverflow.com
🌐 stackoverflow.com
Arrayformula Xlookup - Google Docs Editors Community
Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on More on support.google.com
🌐 support.google.com
March 29, 2023
google sheets - How do I apply ARRAY Formula for XLOOKUP? - Stack Overflow
But when I do so it only repeats the first value rather than applying the formula how I want it to be applied. Here is an image of the first XLOOKUP function, without ARRAYFORMULA, when I just drag out the fill handle: XLOOKUP NO ARRAYFORMULA More on stackoverflow.com
🌐 stackoverflow.com
🌐
Ben Collins
benlcollins.com › home › xlookup function in google sheets
XLOOKUP Function in Google Sheets
February 7, 2024 - =IFERROR( ARRAYFORMULA( XLOOKUP(A2:A;’YourTable’!A2:A;’YourTable’!B2:B)) 😉 ... hi Ben, love your website and advice. I’m usually an Excel user but sometimes have to use Sheets for other clients. Have you ever noticed an issue with XLOOKUP and multiple criteria generating errors where the same formula in Excel doesn’t?
🌐
Google Support
support.google.com › docs › thread › 247135855 › xlookup-and-arrayformula-is-there-a-better-way
XLOOKUP and ARRAYFORMULA, is there a better way? - Google Docs Editors Community
Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on
🌐
Sheetgo
sheetgo.com › home › how to use xlookup in google sheets? (+ formulas and examples)
How to use XLOOKUP in Google Sheets? | Sheetgo
June 3, 2025 - XLOOKUP typically returns a single 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.
Find elsewhere
🌐
InfoInspired
infoinspired.com › home › google docs › spreadsheet › xlookup in google sheets: complete guide
XLOOKUP in Google Sheets: Complete Guide
3 weeks ago - When you want to look up multiple ... and Orange and return the results vertically, you can use: =ARRAYFORMULA(XLOOKUP(VSTACK("Apple", "Orange"), B2:B, C2:C, , 0, -1))...
🌐
Google Support
support.google.com › docs › thread › 208525219 › arrayformula-xlookup
Arrayformula Xlookup - Google Docs Editors Community
March 29, 2023 - Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on
🌐
Layer
golayer.io › home › xlookup in google sheets (+ examples)
XLOOKUP in Google Sheets (+ Examples) | Layer Blog
July 17, 2024 - XLOOKUP in Google Sheets (+ Examples) – XLOOKUP Result · To return multiple results associated with your search key, you can use the ARRAYFORMULA function.
🌐
Layer Blog
blog.golayer.io › google sheets › xlookup in google sheets (+ examples)
XLOOKUP in Google Sheets (+ Examples) | Layer Blog
June 26, 2023 - XLOOKUP in Google Sheets (+ Examples) - Search Keys · 3. For the second parameter, type the ARRAYFORMULA function and select the columns where you want to find the search keys, joined by an ampersand (&).
Price: $
Address: La Marina de Valencia Muelle de la Aduana, 46024
🌐
Google Support
support.google.com › docs › thread › 206605532 › arrayformula-with-xlookup-and-returning-2-cols-of-information
Arrayformula with Xlookup and Returning 2 Cols of Information - Google Docs Editors Community
March 17, 2023 - Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on
🌐
SimpleSheets
simplesheets.co › blog › xlookup-google-sheets
XLOOKUP in Google Sheets: Syntax, 7 Examples and Fixes
November 8, 2024 - XLOOKUP then searches that array of ones and zeroes for the value 1, and returns the stock level from C2:C5 in the same position. ARRAYFORMULA is what allows the comparison to run across the whole range rather than a single cell.
🌐
TikTok
tiktok.com › sheets by olan (@sheetsbyolan) | tiktok › how to return multiple results at the same time using a singular xlookup formula in google sheets! #xlookup #arrayformula #worksmartnothard #work #googlesheetstutorial #googlesheetstips #learngooglesheets #googlesheets #gsheets #data #excel #spreadsheet #dataanalytics #revops #learnontiktok
How to return MULTIPLE results at the same time using a singular XLOOKUP formula in Google Sheets! #xlookup #arrayformula #worksmartnothard #work #googlesheetstutorial #googlesheetstips #learngooglesheets #googlesheets #gsheets #data #excel #spreadsheet #dataanalytics #revops #learnontiktok | TikTok
#tasktracker #template #templatetutorial #excel #googlesheets ... How to use XLOOKUP. Never use VLOOKUP or Index/Match again! #excel #exceltips #exceltutorial #exceltricks #greenscreenvideo ... Learn the difference between VLOOKUP & XLOOKUP in Excel using a simple product table! ⚡ #uktiktok #uklife🇬🇧 #viraluk #ExcelTips #dataanalysis ... This Excel trick would've saved me YEARS 😭 Stop adding lookup values manually — SUM + XLOOKUP does it instantly.
🌐
Stack Overflow
stackoverflow.com › questions › 75426005 › google-sheets-arrayformula-xlookup
array formulas - Google Sheets - ArrayFormula - XLOOKUP - Stack Overflow
February 12, 2023 - so I have this situation: I have dates (mmm-yy) in one row (horizontal) and other dates in one column (vertical) I'm trying to match them and if the dates match, then ArrayFormula-XLOOKUP but since the result cell may overwrite the next cell with formula, I've got Circular dependency detected.enter image description here
🌐
Sheetgo
sheetgo.com › home › mastering the xlookup formula: 4 use cases with real-life examples
Mastering the XLOOKUP Formula: 4 Use Cases with Real-Life Examples - Sheetgo
June 3, 2025 - :=XLOOKUP(F5, $A$4:$A$14, $C$4:$C$14, “Not Found”) ... Scenario: A manager wants to find a full name from a list of employees by combining first and last names dynamically. =ArrayFormula(XLOOKUP($F$5:$F$14, $A$4:$A$14, $B$4:$B$14 & ” ” & $C$4:$C$14,””))
🌐
Google Support
support.google.com › docs › thread › 201613378 › lookup-using-arrayformula
Lookup using arrayformula - Google Docs Editors Community
Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on
🌐
Coefficient
coefficient.io › home
Ultimate Guide to XLOOKUP in Google Sheets (Updated August 2025)
September 2, 2025 - Coefficient will run on the sidebar of your Google Sheet. Select GPT Copilot on the Coefficient sidebar. Then click Formula Builder. Type a description of a formula into the text box. For this example, type: Find cell G4 in lookup range A:A and result range D:D. Then press ‘Build’. Formula Builder will automatically generate the formula from the first example. As mentioned, XLOOKUP also replaces HLOOKUP, which searches horizontal rows, instead of vertical columns, as VLOOKUP does.