How to use XLOOKUP, VLOOKUP and INDEX MATCH in Excel

Lookup functions let you pull a value from a table by matching a key, such as finding a price by product name. This guide covers XLOOKUP, VLOOKUP and INDEX MATCH with simple office examples. It suits beginners who know basic Excel formulas and have a small table to practise on.

YouTube video: Learn XLOOKUP, VLOOKUP & INDEX MATCH in Excel | Module 4 for Beginners Excel Essentials

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

Video length
10 min 34 s
Time to do it
20 minutes
Difficulty
Easy
Steps
9

What you need

Steps

  1. Build a small practice table with headers in row 1, for example Product in column A and Price in column B, with a few rows of data.

  2. Click an empty cell and type =XLOOKUP( to start the formula.

  3. Enter the lookup value, such as the product name in a cell, then a comma.

  4. Select the column holding the matching names, add a comma, then select the column holding the values you want back.

  5. Close the bracket and press Enter. Excel returns the matching value or an error if nothing matches.

  6. For VLOOKUP, type =VLOOKUP(lookup value, table range, column number, FALSE). The FALSE makes it an exact match.

  7. Count the column number from the first column of your selected range, not from column A.

  8. For INDEX MATCH, type =INDEX(value column, MATCH(lookup value, key column, 0)). The 0 means exact match.

  9. Copy the formula down and check each result against your table.

Tips and common mistakes

VLOOKUP can only look to the right of the key column, so put the key column first in the range.

INDEX MATCH works in any Excel version and can look left or right of the key column.

Wrap the formula in IFERROR to show a blank or message instead of #N/A when no match is found.

Questions

Which lookup function should I learn first?

Start with VLOOKUP because it is common in offices, then learn INDEX MATCH for flexibility. Use XLOOKUP if your Excel version has it.

Why does my VLOOKUP return #N/A?

The lookup value probably does not exactly match any entry, or the fourth argument is missing. Add FALSE as the fourth argument and check for extra spaces.

Does XLOOKUP work in older Excel versions?

No, XLOOKUP is only in Excel 365 and Excel 2021 and later. In older versions use INDEX MATCH instead.

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