INDEX MATCH: the lookup that works in every Excel version
MATCH finds the position of a value in a column, and INDEX returns the value at that position from another column. Together they do what VLOOKUP does, but they can look left and don't break when columns are inserted.
How does it work step by step?
Codes are in E2:E7, prices in G2:G7, and you look up the code in B2.
=MATCH(B2,E2:E7,0)
returns the row position, for example 3.
=INDEX(G2:G7,3)
returns the third price. Put together:
=INDEX(G2:G7,MATCH(B2,E2:E7,0))
Why the 0 in MATCH?
It means exact match. Without it, MATCH uses approximate match and can return a wrong position with no error, the same trap as VLOOKUP without FALSE.
Why use INDEX MATCH instead of VLOOKUP?
It can return a column to the left of the search column. It points at the return column directly, so inserting columns doesn't break it. It is also a favourite interview question.
INDEX MATCH or XLOOKUP?
If everyone who opens the file has Microsoft 365 or Excel 2021 or later, XLOOKUP is shorter. For files that must work in older versions, INDEX MATCH is the standard.
Common mistake
The two ranges must be the same size and start on the same row. INDEX(G2:G7,MATCH(B2,E3:E8,0)) returns the value from the wrong row.
Practise INDEX MATCH Practise MATCH
Updated November 2026.