Black Friday Sale20% off every plan — this weekend onlyEnds in04days11hrs51min48secSee plans

VLOOKUP vs XLOOKUP: which should you use?

Excel Updated 2 min read By LogicByte team

Short answer

Use XLOOKUP if everyone who opens the file has Excel 365 or Excel 2021 or later: it can look left, matches exactly by default and has a built-in "not found" value. Use VLOOKUP (or INDEX-MATCH) when the file must work in older Excel versions.

On this page
  1. Side by side
  2. Same lookup, both ways
  3. Looking left
  4. The INDEX-MATCH alternative
  5. The classic VLOOKUP mistake

Side by side

VLOOKUPXLOOKUP
Available inEvery Excel versionExcel 365, Excel 2021 and later
Default matchApproximate (if the last argument is left out)Exact
Look to the leftNoYes
Column inserted in the tableCan return the wrong columnStill correct
Value not found#N/A (wrap in IFERROR)Built-in if_not_found argument
Search from the bottomNoYes (search_mode -1)

Same lookup, both ways

Find the price of product code in A2 from a table in Products!A:C (code, name, price):

=VLOOKUP(A2, Products!A:C, 3, FALSE)
=XLOOKUP(A2, Products!A:A, Products!C:C, "Not found")

Looking left

To find the code from a product name in column B, VLOOKUP cannot help because the answer is to the left. XLOOKUP can:

=XLOOKUP("Notebook", Products!B:B, Products!A:A)

The INDEX-MATCH alternative

Works in every version, can look left, and is what many experienced analysts still use:

=INDEX(Products!C:C, MATCH(A2, Products!A:A, 0))

The classic VLOOKUP mistake

Leaving out the last argument makes VLOOKUP use approximate match, which can return a wrong value silently on unsorted data. Always write FALSE (or 0) for exact match.

Try it yourself

5 questions from the LogicByte practice bank. Pick an answer to check it.

  1. 1Why should SUMIFS ranges generally have matching dimensions?