XLOOKUP pulls a value from one range based on a match in another, and it replaces VLOOKUP without counting columns. This guide suits beginners who can type a basic formula. You need Excel 365 or Excel 2021, since older versions do not have XLOOKUP.
YouTube video: How to Use XLOOKUP in Excel – Step-by-Step Tutorial for Beginners
Caption availability is unknown. Check the CC control in the YouTube player.
Choose a chapter (8)
- Video length
- 8 min 18 s
- Time to do it
- 15 minutes
- Difficulty
- Easy
- Steps
- 10
What you need
Steps
Click the cell where you want the result. Type =XLOOKUP( to start the formula. Excel will show the argument names as you type.
Enter the lookup value first, such as the order ID or name you want to find. This can be a cell reference like A2 or typed text in quotes.
Add a comma, then select the lookup_array, the column that holds the values to match against. Press F4 to lock it with dollar signs.
Add a comma and select the return_array, the column holding the answer you want back. Lock this range too, then close the bracket.
Add the optional if_not_found argument, such as "Not found", so a missing match shows a clear message instead of #N/A.
Leave match_mode at 0 for an exact match and search_mode at 1 for a top-to-bottom search, then press Enter to see the result.
Click the fx icon next to the formula bar to open the Function Arguments box. It explains each parameter and previews the result.
Drag the fill handle down to copy the formula to other rows. The locked ranges stay fixed while the lookup value moves down.
To keep the formula working when you add rows, select your data and press Ctrl+T to make it a table, then use table references in the formula.
For side-by-side data, point the lookup_array at the header row and the return_array at the row of values to do a horizontal lookup.
Tips and common mistakes
Lock the lookup and return ranges with F4 before copying, or the ranges will shift and give wrong answers.
XLOOKUP defaults to an exact match, so you rarely need to change match_mode.
Convert your data to a table so new rows are picked up automatically without editing the formula.
If you see #NAME?, your Excel version is too old for XLOOKUP and you need to update.
Questions
What is the difference between XLOOKUP and VLOOKUP?
XLOOKUP can look left or right and does not need a column number. VLOOKUP only searches to the right of the lookup column and breaks when you insert a column.
Why does my XLOOKUP return #N/A?
The lookup value was not found in the lookup_array. Check for extra spaces or text stored as numbers, or add the if_not_found argument to show a friendly message.
Can XLOOKUP return more than one column?
Yes. If the return_array covers several columns, XLOOKUP spills all matching values across the row.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


