XLOOKUP vs VLOOKUP: Which to Use and How
VLOOKUP
=VLOOKUP(lookup_value, table, column_number, FALSE)
Example: find the price of product code in E2 in a table A2:C100 where price is column 3:
=VLOOKUP(E2, A2:C100, 3, FALSE)
Always use FALSE for an exact match. VLOOKUP can only look to the right of the first column, and inserting a column breaks the column number.
XLOOKUP
=XLOOKUP(lookup_value, lookup_range, return_range, [if_not_found])=XLOOKUP(E2, A2:A100, C2:C100, "Not found")
XLOOKUP defaults to exact match, can return values to the left, survives inserted columns and has a built-in "not found" message. It is available in Excel 2021, Microsoft 365 and Google Sheets.
Which to choose
Use XLOOKUP if everyone who opens the file has a modern version. Use INDEX/MATCH or VLOOKUP for compatibility with Excel 2019 and earlier. Our INDEX MATCH guide covers left lookups, two-way tables and multiple criteria.
Whole-column VLOOKUP giving #SPILL!? See the #SPILL! error explained.
Prefer a ready-made file?
- Excel & Google Sheets Formula Cheat Sheet (50 tested formulas + practice workbook) (US$4, Payhip): 50 formulas for lookups, SUMIFS, IF, text, dates, percentages and FILTER/UNIQUE, each shown with its result, plus an error-fix page and a practice workbook.
Sources: Microsoft Support: Lookup and reference functions (reference) (XLOOKUP is marked Excel 2021 or Microsoft 365; VLOOKUP, INDEX and MATCH are in every version); Microsoft Support: Excel functions (alphabetical). Checked 5 December 2026.