How to Use INDEX MATCH in Excel (Better Than VLOOKUP)

INDEX MATCH finds a value in one column and returns the matching item from another — in any direction. The pattern is =INDEX(return_column, MATCH(lookup_value, lookup_column, 0)). It does everything VLOOKUP does, plus it can look left and it survives columns being inserted.

The two functions working together

INDEX and MATCH are separate functions that get combined:

FunctionWhat it does alone
MATCHFinds the position of a value in a list → returns a number
INDEXReturns the value at a given position in a list

So MATCH answers “which row?” and INDEX answers “give me that row’s value.” Nested, they look up a value:

=INDEX(C2:C100, MATCH(E2, A2:A100, 0))

Read it as: find E2’s position in A2:A100, then return the value at that position from C2:C100.

A worked example

Say you have a product table: A = product ID, B = name, C = price.

To find the price for the ID in E2:

=INDEX(C2:C100, MATCH(E2, A2:A100, 0))

The 0 is important — it means exact match. Leave it out and MATCH assumes your data is sorted and returns approximate results.

Why use it instead of VLOOKUP

VLOOKUPINDEX MATCH
Look left❌✅
Column referenceCounts columns (3)Points at the column directly
Insert a columnBreaksUnaffected
Default matchApproximateYou choose (0 = exact)
Performance on huge sheetsSlowerFaster

That third row is the practical one: with VLOOKUP, inserting a column shifts every column number and quietly returns wrong data. INDEX MATCH points at ranges, so it doesn’t care.

Looking left (the reason most people switch)

VLOOKUP can only return values to the right of what it searches. INDEX MATCH has no direction:

=INDEX(A2:A100, MATCH(E2, C2:C100, 0))

That searches the price column and returns the product ID — impossible with VLOOKUP.

Two-way lookup (row and column)

Nest two MATCHes to look up a value at a row and column intersection:

=INDEX(B2:M100, MATCH(A105, A2:A100, 0), MATCH(B104, B1:M1, 0))

That finds a value where a row label and a column header meet — a genuine advantage over VLOOKUP, which can’t do it at all.

Handling errors

Wrap it in IFERROR so a missing value doesn’t show #N/A:

=IFERROR(INDEX(C2:C100, MATCH(E2, A2:A100, 0)), "Not found")

For the lookup errors this prevents, see VLOOKUP not working.

Should you use XLOOKUP instead?

If you have Microsoft 365 or Excel 2021+, yes. XLOOKUP does everything INDEX MATCH does with a simpler syntax:

=XLOOKUP(E2, A2:A100, C2:C100)

INDEX MATCH remains valuable when:

For the modern replacement, see how to use XLOOKUP in Excel.

Common problems

ProblemFix
#N/A despite an obvious matchA trailing space or a number stored as text. Try MATCH(TRIM(E2), ...)
Wrong row returnedThe 0 is missing — without it, MATCH does an approximate search on unsorted data
#VALUE!The INDEX and MATCH ranges are different lengths
Returns the wrong duplicateMATCH returns the first match. For the last, use LOOKUP(2, 1/(range=value), return_range)
Slow on a huge sheetFull-column references (A:A) are the usual cause — use exact ranges

For the lookups it replaces, how to use VLOOKUP in Excel covers the older approach, and Google Sheets formulas for beginners has the Sheets equivalents.

FAQ

What is INDEX MATCH in Excel?

Two functions combined: MATCH finds which row holds your value, and INDEX returns a value from that row in a different column. Written =INDEX(return_range, MATCH(value, lookup_range, 0)).

Is INDEX MATCH better than VLOOKUP?

For most purposes, yes — it can look left, it doesn’t break when columns are inserted, and it’s faster on large sheets.

How do I do a lookup that looks left in Excel?

Use INDEX MATCH: =INDEX(A2:A100, MATCH(E2, C2:C100, 0)) searches column C and returns from column A. VLOOKUP can’t do this.

Should I use INDEX MATCH or XLOOKUP?

Use XLOOKUP if you have Microsoft 365 or Excel 2021+ — it’s simpler. Use INDEX MATCH on older versions, or when you need a two-way lookup.

Why does MATCH return the wrong row?

The third argument is missing. MATCH(value, range, 0) needs the 0 for an exact match; without it, MATCH assumes sorted data and returns approximate results.