Quick answer
XLOOKUP does what VLOOKUP does with fewer ways to go wrong. It matches exactly unless you ask otherwise, can return a column to the left of the one it searches, keeps working when someone inserts a column, and has its own argument for a value that isn’t found. Use VLOOKUP when the file has to work in Excel 2019 or earlier, which don’t have XLOOKUP.
Plenty of workbooks at work are built on VLOOKUP, and Microsoft 365 also offers XLOOKUP for the same job. Both find a value in one column and bring back something from the same row. The difference is in how you tell them where to look, and that decides what breaks when the sheet changes.
What each one does
VLOOKUP searches the first column of a table and counts across to the column you name by number:
col_index_num is a position: 3 means the third column of the table. The last argument decides how it matches: FALSE for an exact match, and if you leave it out, an approximate one.
XLOOKUP takes the column to search and the column to return as two separate ranges:
It finds the value’s position in lookup_array and returns the cell at the same position in return_array. It matches exactly by default, and the three optional arguments set what to show when nothing is found, how to match and which direction to search.
So VLOOKUP counts columns and XLOOKUP points at them. Most of the differences below follow from that.
The same lookup, both ways
Say your office keeps a supplies price list, and an order form looks up each item’s price from its code:
Side by side
| VLOOKUP | XLOOKUP | |
|---|---|---|
| Default match | Approximate, unless the last argument is FALSE | Exact |
| Where it searches | The first column of the table only | Any column or row you give it |
| How you pick the result | A column number, counted from the left | The result range itself |
| Return a column to the left | No | Yes |
| After a column is inserted in the table | Returns the wrong column | Still returns the right one |
| Value not found | #N/A, unless you wrap it in IFNA | #N/A, or the value in its fourth argument |
| Several columns at once | One column per formula | Yes: a result range several columns wide spills them all |
| Search from the bottom up | No | Yes, with search_mode -1 |
Wildcards such as * | Yes, with an exact match | Yes, with match_mode 2 |
| Versions | Every version | Microsoft 365, Excel 2021 and Excel 2024 |
What breaks VLOOKUP but not XLOOKUP
Someone inserts a column
Say a colleague adds a Supplier column between Item and Price. Excel adjusts both formulas’ ranges by itself, but VLOOKUP’s column number is a typed 3, and the third column is now Supplier:
$D$2:$D$6 along with the column, so it still returns the price. VLOOKUP after the insert: in D9, =VLOOKUP(A9,$A$2:$D$6,3,FALSE) returns Ridgeway. XLOOKUP after the insert: in D9, =XLOOKUP(A9,$A$2:$A$6,$D$2:$D$6) returns $14.50.Nothing flags the VLOOKUP as wrong, since it returns a real value from the table. The price column of the order form fills with supplier names, or worse, with another column’s numbers.
The result is to the left of the search column
VLOOKUP can only return columns to the right of the one it searches. To find an item’s code from its name, with names in B and codes in A, XLOOKUP takes the two ranges in either order:
That returns OS-102. With VLOOKUP you’d have to move the columns, or switch to INDEX and MATCH.
The last argument is left out
VLOOKUP without FALSE looks for an approximate match: in a list sorted by code, a code that’s missing gets the price of the code just before it, with no error to warn you. XLOOKUP matches exactly unless you ask otherwise:
Approximate matching is useful in its place, such as finding a tax rate from a table of income bands. For codes, names and IDs, VLOOKUP needs FALSE every time.
A value that isn’t in the list
Both return #N/A when nothing matches. XLOOKUP can show something else on its own, through its fourth argument, while VLOOKUP needs IFNA around it:
#N/A in Excel covers why a value that looks present can still go unfound.
Is one faster?
Don’t choose between them for speed: on office-size lists both are quick. What slows a workbook down is thousands of lookup formulas over large ranges, such as whole columns, whichever function does the looking.
Which Excel versions have XLOOKUP
XLOOKUP is in Microsoft 365 on Windows and Mac, in Excel 2021 and Excel 2024, and in Excel on iPad, iPhone and Android. Excel 2019 and Excel 2016 don’t have it.
If someone opens your workbook in one of those older versions, the formula shows up with a prefix, as _xlfn.XLOOKUP(...). The cell keeps the last result it calculated until someone edits the formula, and then it shows #NAME?. If the file goes to people on older versions, use VLOOKUP, or INDEX and MATCH.
Where INDEX and MATCH fit
INDEX and MATCH work in every version and can return a column to the left, as XLOOKUP can. MATCH finds the position, with 0 for an exact match, and INDEX returns the cell at that position:
It takes two functions instead of one, so where XLOOKUP is available, it’s the shorter formula.
Which one to use
Use XLOOKUP for new work when everyone who opens the file has Microsoft 365, Excel 2021 or later. Use VLOOKUP, with FALSE, when the file goes to people on Excel 2019 or earlier, or to keep an existing workbook consistent. INDEX and MATCH cover the one case VLOOKUP can’t: a lookup to the left in a version without XLOOKUP.
Practice this in ProExcel
Find the account manager for a customer's account number with VLOOKUP.
ProExcel checks your answer the moment you press Enter.
The free lesson Look up a value with VLOOKUP covers exact matches and locked ranges, and Look up a price with XLOOKUP, whose practice is part of Premium, does the same with XLOOKUP, including a code that’s missing. All nine free VLOOKUP exercises, the #N/A cases included, are on one page in VLOOKUP practice.
Frequently asked questions
Is XLOOKUP faster than VLOOKUP?
Not in a way you’d notice on an office list. Choose XLOOKUP for its exact match by default and its separate result range, not for speed.
What's the difference between VLOOKUP and XLOOKUP?
VLOOKUP searches the first column of a table and returns the column you name by number, with an approximate match unless you add FALSE. XLOOKUP takes the search range and the result range separately, matches exactly by default, can look to the left and has its own argument for a value that isn’t found.
Does Google Sheets have XLOOKUP?
Yes. Google added XLOOKUP to Sheets in 2022, with the same arguments as Excel’s, so a formula like =XLOOKUP(A9,A2:A6,C2:C6) works in both.
Is XLOOKUP better than INDEX MATCH?
For new work in Microsoft 365 it’s simpler: one function instead of two, exact by default, with a built-in value for a missing match. INDEX and MATCH still have the edge when the file must work in Excel 2019 or earlier.
Should I replace all my VLOOKUPs with XLOOKUP?
There’s no need to rewrite formulas that work. Use XLOOKUP for new formulas, and replace a VLOOKUP when you’re changing it anyway, especially one without FALSE or in a table where columns get inserted.
Practice this with real formulas
ProExcel's free course turns each idea into a formula you type yourself, checked the moment you press Enter. Five minutes a lesson, on your phone or computer.