XLOOKUP is the newer, simpler lookup function: you point it at the column to search and the column to return, and it defaults to an exact match. VLOOKUP counts columns from the left and needs FALSE to find an exact match. Use XLOOKUP if you have Microsoft 365, Excel 2021, Excel 2024 or Excel for the web, and VLOOKUP or INDEX and MATCH if you share files with older versions.


How each function works

Both functions find a value in a list and return something from the same row. The difference is in how you tell Excel where to look.


VLOOKUP

VLOOKUP(lookup_value, table_array, col_index_num, FALSE) searches the first column of a table and returns a value from a column you identify by counting. For example, =VLOOKUP("BK09",A2:F50,6,FALSE) searches column A and returns the sixth column. It can only look to the right of the search column, and if someone inserts a column in the table, the number 6 can silently point at the wrong data.


XLOOKUP

XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode]) takes the search column and the return column separately. For example, =XLOOKUP("BK09",A2:A50,F2:F50,"Not found") searches column A and returns column F. Because the two ranges are named separately, the answer can be to the left of the search column, and inserting columns does not break it.


Where XLOOKUP is better


Which should you use?

Check your version first. XLOOKUP is available in Microsoft 365, Excel 2021, Excel 2024 and Excel for the web. It is not in Excel 2019 or earlier, and a workbook using it will show errors for colleagues on those versions. If you share files widely, INDEX and MATCH works in every version and can also look left. VLOOKUP is still fine for simple, stable tables, and you will meet it in other people's files, so it is worth being able to read.


A quick example

You have a product list with IDs in column A and prices in column F, and you want the price of BK09. With VLOOKUP you write =VLOOKUP("BK09",A2:F50,6,FALSE). With XLOOKUP you write =XLOOKUP("BK09",A2:A50,F2:F50,"Not on price list"). Both return the same price. If BK11 does not exist, VLOOKUP shows #N/A unless you add IFERROR, while XLOOKUP shows your message.

To find the highest price at or below a £600 budget, use match mode -1: =XLOOKUP(600,F2:F50,B2:B50,"Nothing that cheap",-1). Notice the commas: each optional argument keeps its place, so a missing comma is the most common mistake.


Common questions


Is XLOOKUP faster than VLOOKUP?

Speed rarely matters in everyday workbooks. Choose XLOOKUP for clarity and fewer errors, not for performance.


Why does my lookup return #N/A?

The value is not in the search column, or it differs slightly, for example a trailing space or a number stored as text. Check both ranges for matching data types.


Can I use XLOOKUP in Google Sheets?

Google Sheets has its own XLOOKUP function with the same basic purpose, but the optional arguments are not identical, so test your formula there rather than copying one across.


Learn the full skill: Intermediate Excel: Lookups, Pivot Tables, Power Query and Dashboards

More plain-English answers: see all quick answers. Search more formulas in our free Excel formula finder.

Learn something new every week

One short, practical tip each Thursday, plus news when new courses open. Free, and you can unsubscribe in one click.

We'll never share your email. See our privacy policy.