Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
XLOOKUP returns #N/A when the lookup value is not found in the lookup array and no if_not_found argument was provided. Unlike VLOOKUP, XLOOKUP supports a built-in not-found value, but if that argument is omitted and the match fails, the error propagates to the cell.
=XLOOKUP(A2,D2:D100,E2:E100)=XLOOKUP(TRIM(A2),D2:D100,E2:E100,"Not found",0)Added TRIM to remove hidden spaces from the lookup value, specified exact match mode (0), and added a not-found string to distinguish genuine misses from bugs.
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Got the same error in multiple cells? Upload your whole sheet and the Auditor will flag every #N/A and broken formula at once — free. Pro plans (₹199/$4.99/mo) can apply the verified fixes and download the corrected file in one click.
Mechanically the same — the value was not found. But XLOOKUP lets you specify an if_not_found value as the fourth argument, so you can return a blank or custom text instead of #N/A without wrapping the whole formula in IFERROR.
Yes. Set match_mode to 2 for wildcard matching. Use * for any sequence of characters and ? for a single character in the lookup value.
Inconsistent data types are the usual culprit. Some cells in the lookup_array may be formatted as text while others are numbers, even if they look identical. Use ISNUMBER() or ISTEXT() to audit the column.
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 #SPILL! errors from XLOOKUP in Excel — spill range blocked by non-empty cells, merged cells, or returning an array into a table column.
How-toLearn how to use XLOOKUP to fetch data from multiple columns efficiently in both Excel and Google Sheets.
How-toLearn how to use XLOOKUP with wildcards to perform flexible lookups in Excel and Google Sheets.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: