XLOOKUP vs VLOOKUP: When to Switch and How

Published 2026-12-05 by Sheettally

If you still write VLOOKUP formulas, you are not wrong. They work, and every version of Excel can read them. But XLOOKUP removes the three things that cause most lookup mistakes. This guide shows both side by side so you can decide when to switch.

The same lookup, two ways

Say column A of a sheet called Prices holds product codes, column B holds names and column C holds prices. You want the price for the code typed in cell F2.

=VLOOKUP(F2, Prices!A:C, 3, FALSE)
=XLOOKUP(F2, Prices!A:A, Prices!C:C)

In the VLOOKUP version, the number 3 means "third column of the range". If someone inserts a column inside the range, the 3 now points at the wrong data and Excel does not warn you. In the XLOOKUP version you point straight at the column you want back, so inserting columns does not break it.

Three real differences

  1. Exact match is the default. VLOOKUP needs FALSE (or 0) at the end to force an exact match. If you forget it, Excel uses an approximate match and can return a wrong value without any error. XLOOKUP does an exact match unless you ask for something else.
  2. It can look to the left. VLOOKUP only returns values from columns to the right of the lookup column. XLOOKUP takes the lookup range and the return range separately, so the order of your columns no longer matters.
  3. It has a built-in "not found" message. The fourth argument is what to show when nothing matches:
    =XLOOKUP(F2, Prices!A:A, Prices!C:C, "Code not found")
    With VLOOKUP you would wrap the whole thing in IFERROR, which also hides other errors you may want to see.

Returning more than one column

In current versions of Excel, XLOOKUP can return several columns at once. Point the return range at two or more columns and the result spills into the cells to the right:

=XLOOKUP(F2, Prices!A:A, Prices!B:C)

That gives you the name and the price in one formula.

When to keep VLOOKUP

XLOOKUP is available in Excel for Microsoft 365, Excel 2021 and newer, and Excel for the web. It is not in Excel 2019 or older. If you send a file to someone who may open it in an older version, VLOOKUP (or INDEX with MATCH) is the safer choice. Google Sheets also has XLOOKUP now, but check that your own copy of Sheets supports it before you rely on it in a shared file.

A quick checklist

Practice with real data is the fastest way to learn this. Our free practice workbook includes lookup exercises. You can find it on the free downloads section of the catalog.


← All guides · Browse templates