Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=XLOOKUP(A2, A$2:A$4, B$2:D$4)Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
Yes, XLOOKUP can return multiple columns by specifying a range of columns as the return range.
XLOOKUP will return #N/A by default if the lookup value is not found. You can specify an alternative return value using the fourth argument.
No, XLOOKUP is available in Excel 2019 and later versions, as well as in Google Sheets.
The modern replacement for VLOOKUP and INDEX/MATCH — look up a value and return a match in any direction.
How-toConcatenate criteria columns in XLOOKUP's lookup array to match on multiple conditions at once, returning results only when all criteria align.
Error fixFix #N/A errors in XLOOKUP in Excel and Google Sheets — lookup value not found, data-type mismatch, incorrect array size, and match mode issues.
How-toLearn how to use XLOOKUP with wildcards to perform flexible lookups in Excel and Google Sheets.
Error fixFix #SPILL! errors from XLOOKUP in Excel — spill range blocked by non-empty cells, merged cells, or returning an array into a table column.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: