Formula Guide

VLOOKUP vs XLOOKUP:
which one should you actually use?

XLOOKUP has been around for years but most people still reach for VLOOKUP by habit. Here's the honest breakdown โ€” and when INDEX MATCH beats both.

EP
ExcelPro ยท June 4, 2026 ยท 8 min read
๐Ÿ”
In this guide
  1. How VLOOKUP works
  2. The fatal flaw of VLOOKUP
  3. How XLOOKUP fixes it
  4. Side-by-side comparison
  5. When INDEX MATCH beats both
  6. The verdict

If you've used Excel for more than a week, you've probably heard of VLOOKUP. It's the formula most people learn first for looking things up in a table. But in 2019, Microsoft released XLOOKUP โ€” a newer, smarter version that fixes almost every frustration with VLOOKUP.

So should you switch? Should you forget VLOOKUP entirely? Let's settle this properly.

How VLOOKUP works

VLOOKUP looks down the first column of a table, finds a match, and returns a value from another column in the same row.

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

Example: find the price for "Coffee" in a product list.

=VLOOKUP("Coffee", A2:C10, 3, 0) โ† looks for Coffee in column A, returns column 3

The 0 at the end means exact match. Always use 0 unless you specifically need approximate matching.

The fatal flaw of VLOOKUP

Here's what nobody tells beginners: VLOOKUP has a fundamental limitation that has caused spreadsheet errors for decades.

It can only look right. The thing you're looking for must always be in the leftmost column of your table. The value you want to return must be to the right of it. You cannot return something to the left.

โš ๏ธ The classic VLOOKUP trap

If you rearrange your columns โ€” even just swapping two columns around โ€” your VLOOKUP breaks and returns wrong answers silently. No error, just wrong data.

The other issue: the column number is hardcoded. =VLOOKUP("Coffee", A2:C10, 3, 0) returns column 3. If someone inserts a new column in your table, suddenly column 3 is now different data โ€” and again, no error, just wrong answers.

How XLOOKUP fixes it

=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])

The same search โ€” find the price for "Coffee":

=XLOOKUP("Coffee", A2:A10, C2:C10) โ† look for Coffee in A, return the matching value from C

Notice what's different: you specify the return column directly as a range, not as a number. That means inserting columns never breaks it. And you can return columns to the left, right, above โ€” anywhere.

XLOOKUP also has a built-in fallback for when nothing is found:

=XLOOKUP("Coffee", A2:A10, C2:C10, "Not found") โ† shows "Not found" instead of #N/A error

Side-by-side comparison

FeatureVLOOKUPXLOOKUP
Looks left as well as rightโœ— Noโœ“ Yes
Survives column insertionโœ— Noโœ“ Yes
Built-in "not found" messageโœ— Noโœ“ Yes
Returns multiple columns at onceโœ— Noโœ“ Yes
Works in older Excel versionsโœ“ Yesโœ— 2019+ only
Easier to read and understandโœ— Harderโœ“ Easier

When INDEX MATCH beats both

INDEX MATCH is the combination of two separate formulas โ€” INDEX returns a value at a position, MATCH finds the position. Together they create the most flexible lookup in Excel.

=INDEX(C2:C10, MATCH("Coffee", A2:A10, 0))

INDEX MATCH wins when you need to:

๐Ÿ’ก The honest verdict on INDEX MATCH

INDEX MATCH is more powerful but harder to read. If XLOOKUP can do what you need, use XLOOKUP. Only reach for INDEX MATCH when XLOOKUP falls short.

The verdict

Use VLOOKUP when...
  • You're sharing files with people on older Excel
  • The file needs to work in Google Sheets
  • You learned it already and it works fine for your use case
Use XLOOKUP when...
  • You're on Excel 2019 or Microsoft 365
  • You want a cleaner, more readable formula
  • You need to look left or return multiple columns
  • You're starting from scratch โ€” just learn this one

If you're learning Excel in 2026, start with XLOOKUP. It does everything VLOOKUP does, plus more, with a cleaner syntax. Only learn VLOOKUP so you can understand it when you see it in other people's spreadsheets.

Try both โ€” live in your browser

ExcelPro has exercises for VLOOKUP, XLOOKUP, and INDEX MATCH. Type real formulas, get instant feedback.

Start practising free โ†’
Formula guide
XLOOKUP complete guide with 8 examples โ†’
Keep reading