VLOOKUP vs XLOOKUP: Which Should You Use in 2026?
Use XLOOKUP if you have Excel 365, Excel 2021+, or Google Sheets — it can look in any direction, won't break when columns move, and handles not-found cases cleanly. Stick with VLOOKUP only on Excel 2019 and earlier.
VLOOKUP and XLOOKUP both answer the same question — “find this value and return something related to it” — but they do it very differently. Here is the short answer, then the detail.
The syntax, side by side
VLOOKUP takes a range and a column number:
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
XLOOKUP takes two arrays and an optional fallback:
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode])
You can build either one instantly with our VLOOKUP generator or XLOOKUP generator — fill in the fields and copy the result.
Four differences that actually matter
1. Direction
VLOOKUP can only return values to the right of the lookup column. XLOOKUP can return a value anywhere, including to the left. This alone removes the most common reason people reach for the clunky INDEX/MATCH combo.
2. Column references vs. index numbers
VLOOKUP’s col_index_num is a hard-coded number. Insert a column in the middle of your table and every VLOOKUP silently points at the wrong data. XLOOKUP references the return range directly, so it survives column edits.
3. Handling “not found”
VLOOKUP returns #N/A when there’s no match, so you end up wrapping it: =IFERROR(VLOOKUP(...), "Not found"). XLOOKUP has a built-in if_not_found argument.
4. Default match mode
VLOOKUP defaults to an approximate match, which quietly returns wrong answers on unsorted data — you must remember to add FALSE. XLOOKUP defaults to an exact match, the safer choice.
When VLOOKUP is still the right call
- You’re on Excel 2019, 2016, or earlier, where XLOOKUP doesn’t exist.
- You’re sharing a workbook with people on those older versions.
- A legacy template already relies on it and works reliably.
Next steps
New to writing lookups by hand? Let AI do it — see how to write Excel formulas with AI. Comparing platforms? Read our guide to the best AI spreadsheet tools.