INDEX and MATCH in Excel: examples and practice
MATCH finds the row of a value, and INDEX gives back the value in that row of another column. For example, =INDEX(C2:C5,MATCH("Chen",A2:A5,0)) gives back the extension of Chen.
Syntax
=INDEX(array, row_num, [column_num])=MATCH(lookup_value, lookup_array, [match_type])=INDEX(return_range, MATCH(lookup_value, lookup_range, 0))
array (INDEX)- The range with the result, for example C2:C5.
row_num (INDEX)- The position in the range. 1 is the first cell. MATCH gives this number.
lookup_value (MATCH)- The value to find.
lookup_array (MATCH)- The column where MATCH looks for the value.
match_type (MATCH)- 0 for an exact match. Always write 0 for names and codes.
Examples
Example data
| A | B | C | |
|---|---|---|---|
| 1 | Employee | Team | Extension |
| 2 | Ana | Sales | 201 |
| 3 | Ben | Support | 305 |
| 4 | Chen | Sales | 214 |
| 5 | Dina | Finance | 410 |
| Formula | Result | What it does |
|---|---|---|
=MATCH("Dina",A2:A5,0) | 4 | MATCH alone gives the position: Dina is the 4th name in A2:A5. |
=INDEX(C2:C5,MATCH("Chen",A2:A5,0)) | 214 | MATCH finds Chen at position 3. INDEX gives back the 3rd value of C2:C5. |
=INDEX(A2:A5,MATCH(305,C2:C5,0)) | Ben | This lookup goes to the left: from the extension back to the name. VLOOKUP cannot do this. |
Try it
In cell F2, use INDEX and MATCH to find the team of the employee in E2.
Show the solution
=INDEX(B2:B5,MATCH(E2,A2:A5,0)) → Finance
Common mistakes
Missing 0 in MATCH
Without 0, MATCH looks for an approximate match. In an unsorted list, the result is wrong. Always write MATCH(value,range,0).
Ranges that start in different rows
INDEX(C1:C5,MATCH("Chen",A2:A5,0)) is one row off. The two ranges must start and end in the same rows.

Practice this in a story
A short lesson from a real job. We show you each step, then you do it yourself.
Lookup to the left · Module 7 · Lookup · 6 min
Customers call and say the name of the part. Kofi needs the part number. In the list, the number is to the left of the name. VLOOKUP cannot look to the left. INDEX and MATCH can.
Practice this in a storyMore lessons with INDEX and MATCH
- Price by size and brand · Module 7 · INDEX with two MATCH