Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=XLOOKUP(A2&B2,$C$2:$C$5&$D$2:$D$5,$E$2:$E$5,"Not found")Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need it for your exact data?
Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.
Use an array-confirmed INDEX/MATCH: =INDEX($E$2:$E$100,MATCH(A2&B2,$C$2:$C$100&$D$2:$D$100,0)) confirmed with Ctrl+Shift+Enter in Excel 2019 and earlier.
The modern replacement for VLOOKUP and INDEX/MATCH — look up a value and return a match in any direction.
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.
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: