How to use XLOOKUP in Microsoft Excel

XLOOKUP finds a value in one column and returns a matching value from another column. It is easier and safer than VLOOKUP because it works in any direction and does not break when you insert columns. You need Excel 365 or Excel 2021, since older versions do not have it.

YouTube video: How to Use XLOOKUP in Excel | Excel for Beginners

YouTube’s video details do not confirm captions. Check CC in the player for available tracks.

Video length
1 min 31 s
Time to do it
10 minutes
Difficulty
Easy
Steps
8

What you need

Steps

  1. Open your spreadsheet and click the cell where you want the result to appear.

  2. Type =XLOOKUP( to start the formula. Excel will show the argument names as you type.

  3. Enter the lookup value, such as a name or ID, or click the cell that holds it. Add a comma.

  4. Select the lookup array, the column or row where Excel should search for that value. Add a comma.

  5. Select the return array, the column or row that holds the data you want back.

  6. Press Enter. The matching value appears in the cell.

  7. Drag the fill handle down to copy the formula to other rows.

  8. Add a fourth argument like "Not found" so missing matches show a clear message instead of an error.

Tips and common mistakes

The lookup array and return array must be the same size, or Excel returns a #VALUE! error.

XLOOKUP defaults to an exact match, so you do not need the FALSE argument that VLOOKUP requires.

Use absolute references with $ signs if you plan to copy the formula to many cells.

Questions

What is the difference between XLOOKUP and VLOOKUP?

XLOOKUP can search left or right and returns a value from any column you choose. VLOOKUP only searches the first column and counts columns to the right.

Why does my XLOOKUP show #NAME?

Your Excel version is probably older than Excel 2021 or Microsoft 365. XLOOKUP is not available in Excel 2019 and earlier.

Can XLOOKUP return several columns at once?

Yes. If the return array covers multiple columns, the formula spills the results into the neighbouring cells.

The notes are drafted automatically from video details and general task knowledge. How the guide was prepared

Report a correction

More in Apps & Software

See all