Excel Guide
How to Use XLOOKUP in Excel: The Three Arguments That Replace VLOOKUP
=XLOOKUP(lookup_value, lookup_range, return_range). XLOOKUP finds a value in one range and returns the matching value from another range. It is the modern replacement for VLOOKUP: no column numbers, no "look right only" rule, and an exact match by default. Practise it: XLOOKUP — 10 Excel practice problems.
The basic form
Say column A holds product names and column B holds prices. Cell D2 holds the product you want the price for:
Read it left to right: "find the value in D2 inside A2:A4, and return the value from the same row in B2:B4." PractiseSkills' XLOOKUP topic page works this exact example through: Widget in D2 returns 9.99, the price from the matching row. The same three-argument pattern looks up a department from an employee ID (E2 returns Support) and a grade from a student name (Priya returns A).
Why it beats VLOOKUP
VLOOKUP searches down the first column of a table and returns something from a column to the right of it:
That 2 is a hardcoded column number — insert a new column into the table and every VLOOKUP referencing it breaks. VLOOKUP can also only look to the right of the lookup column, and its last argument, FALSE, means "exact match": leaving it off tells Excel to find an approximate match, which silently returns the wrong row if your data isn't sorted.
XLOOKUP fixes all three problems, as PractiseSkills' VLOOKUP vs XLOOKUP guide puts it: it takes the lookup range and the return range as two separate arguments, so it can look in either direction, inserting columns doesn't break it, and it defaults to an exact match with no easy-to-forget FALSE argument. When nothing matches, it returns a clear #N/A — or a custom fallback you specify as a fourth argument — instead of VLOOKUP's less obvious error behaviour.
The two things to check before you use it
1. Your Excel version. XLOOKUP is available in Excel for Microsoft 365, Excel 2021, and Excel 2024. It is not available in Excel 2019 or earlier — if you are on one of those versions, use VLOOKUP, or INDEX combined with MATCH, which is more verbose but as flexible as XLOOKUP.
2. Which one to learn first. If XLOOKUP is available in your version of Excel, use it by default — it is strictly more capable. VLOOKUP is still worth knowing well, though: it is what you will see in most existing spreadsheets, job interviews, and older shared files.
Practise it, don't just read it
Reading the pattern once rarely sticks; writing the formula against a data table does. PractiseSkills' XLOOKUP topic works through 10 problems step by step — look up a price, a department, a grade, a location, a vendor's payment terms, a phone extension, a room number, a discount, course credits, and a warehouse bin. On each topic page, 3 of the 10 exercises are free with no sign-up needed, and you are graded on the formula you write.
Try the XLOOKUP Exercises: 10 Excel Practice Problems, read the full comparison in VLOOKUP vs XLOOKUP in Excel: Which to Use, or compare with the VLOOKUP Exercises: 10 Excel Practice Problems. Browse all topics on the practice hub, or take the free 9-task Excel practice test — about 10 minutes, no sign-up — to find your weakest skill first.
Try it yourself
Practice XLOOKUP with real interactive exercises and instant feedback.
Start practicing XLOOKUP →