Excel functions / Lookup & reference

INDEX & MATCH

Combines INDEX and MATCH into a flexible lookup that works in any direction and in every version of Excel.

Syntax=INDEX(return_range, MATCH(lookup_value, lookup_range, 0))

Arguments

return_rangeThe column holding the answer you want back.
lookup_valueWhat you are searching for.
lookup_rangeThe column to search, the same height as the return range.

How it works

MATCH finds which row the value is in, and INDEX returns the item at that row from another column. Together they do everything VLOOKUP does, with fewer limits.

The answer column can be to the left or right of the search column, and inserting columns never breaks the formula, because there is no column number to keep up to date.

Example

F2=INDEX(C2:C5,MATCH("Chair",B2:B5,0))
ABCDEF
1CodeProductPriceStock
2A10Lamp$25.0012$85.00
3B20Desk$140.003
4C30Chair$85.007
5D40Shelf$60.000
6

Result: $85.00. MATCH finds Chair at position 3, and INDEX returns the 3rd price.

Tips

Practise INDEX & MATCH

Try it yourself in a real spreadsheet, with instant feedback on every answer.

Start the exercise

Related