How to use XLOOKUP in Excel to find matching data

XLOOKUP finds a value in one range and returns the matching item from another range. It suits beginners who know basic Excel formulas and want an alternative to VLOOKUP. You need a version of Excel that includes XLOOKUP, such as Microsoft 365.

YouTube video: Learn XLOOKUP in Excel in 5 Minutes! (Beginner Guide)

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

4 chapters. Tap a step to jump to it.Chapters from the creator
Choose a chapter (4)
Video length
5 min 4 s
Time to do it
10 minutes
Difficulty
Easy
Steps
7

What you need

Steps

  1. Open your spreadsheet and click the cell where you want the result to appear. Type =XLOOKUP( to start the formula.

  2. Select the lookup value cell, the item you want to find, such as a name or ID. Add a comma after it.

  3. Select the lookup array, the column that contains the value you are searching for. Add a comma.

  4. Select the return array, the column holding the data you want back. Close the bracket and press Enter.

  5. To return several columns at once, make the return array span all of them. The results spill into the cells to the right.

  6. To search across a row instead of down a column, put the horizontal range in the lookup array and the matching row in the return array.

  7. Add a fourth argument such as "Not found" so missing values 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 an error.

XLOOKUP searches in both directions, so the return column can sit left or right of the lookup column.

Lock your ranges with $ signs before copying the formula down a column.

Questions

What is the difference between XLOOKUP and VLOOKUP?

XLOOKUP can search in either direction and return data from columns on either side of the lookup column. VLOOKUP only searches to the right and needs a column number.

Why does my XLOOKUP return #N/A?

The lookup value was not found in the lookup array. Check for typos, extra spaces or numbers stored as text, or add a not-found message as the fourth argument.

Can XLOOKUP return more than one column?

Yes. Set the return array to cover several columns and the results fill the cells to the right automatically.

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