ExcelFluent
Start free

How to use INDEX MATCH in Excel

INDEX MATCH is two functions working together. MATCH finds which row a value is in; INDEX returns the item in that row from any column. It looks left or right and works in every Excel version, which is why interviewers love it.

Syntax

=INDEX(return_range, MATCH(lookup_value, lookup_range, 0))
return_range
The column you want the answer from.
lookup_value
What you are looking for.
lookup_range
The column to search in. Same size as the return range.
0
Exact match, like FALSE in VLOOKUP.

Try it now · free, no sign-up

Find an ID from a name

  1. First the MATCH part. In G2, find which position the name in F2 has in the Name column.
  2. Now wrap it in INDEX to return the ID from column A. Replace G2.
ABCDEFG
1IDNameDepartmentSalaryFind nameAnswer
2E104MeganFinance72,000.00Tyler
3E101CarlosHR58,000.00
4E106PriyaIT91,000.00
5E103TylerSales54,000.00
6E102JasmineIT86,000.00
7E105EthanFinance67,000.00

Loading the live spreadsheet…

Read it inside out

MATCH(F2,B2:B7,0) gives a number: the position of the name. INDEX(A2:A7, 4) gives the 4th item of A2:A7. Put the MATCH where the 4 is and you have a lookup that can return any column, on either side.

Two-way lookups

Use two MATCHes to find both the row and the column: =INDEX(B2:E10,MATCH(name,A2:A10,0),MATCH(month,B1:E1,0)). This is a classic advanced interview question.

Common mistakes

Forgetting the 0 in MATCH
Without it, MATCH does an approximate match and returns the wrong position on unsorted data.
Ranges of different sizes
If the return range starts on a different row from the lookup range, every answer is shifted by one row.

Practice it until it sticks

ExcelFluent has 42 hands-on lessons, from SUM to XLOOKUP, plus 5 real work projects and a final challenge that uses everything. Every answer is checked instantly. The first 5 lessons and 1 work project (an invoice with tax) are free.

Start the free lessons → Open the full INDEX MATCH lesson

Frequently asked questions

Why use INDEX MATCH instead of VLOOKUP?

It can return columns to the left, it does not break when columns are inserted, and it is faster on very large sheets.

Is INDEX MATCH still worth learning now that XLOOKUP exists?

Yes. Many workplaces run Excel versions without XLOOKUP, and interviewers use INDEX MATCH to test whether you understand how lookups work.

Related practice