INDEX MATCH explained
MATCH finds the position of a value in a list, and INDEX returns the item at a position in another list. Together they look up any column from any column, so the answer can be to the left and inserting a column does not break the formula.
Last updated 23 November 2026
| A | B | |
|---|---|---|
| 1 | Name | Code |
| 2 | Item A | P110 |
| 3 | Item B | P245 |
| 4 | Item C | P390 |
| 5 | P390 |
In A5, write =INDEX($A$2:$A$4,MATCH(B5,$B$2:$B$4,0)) and it shows Item C.
The two halves
MATCH(value, list, 0) returns where the value sits in the list, counted from 1. The 0 asks for an exact match.
INDEX(range, position) returns the item at that position. Both ranges must cover the same rows, and then MATCH can feed INDEX: INDEX(prices, MATCH(code, codes, 0)).
Why people prefer it
- The return column can be left of the search column, which VLOOKUP cannot do.
- There is no column number to count, so an inserted column does not shift the answer.
- Two MATCH functions give a two way lookup: INDEX(grid, MATCH(row key, row headings, 0), MATCH(column key, column headings, 0)).
Keep the ranges fixed
Write both ranges with dollar signs. If they are relative they slide when the formula is filled down, and the lookup quietly searches the wrong rows.
Practise it
Module 3, Lookups, has 20 tasks on this, each checked on hidden data: open module 3. You can also try formulas in the sandbox.