How to use INDEX MATCH in Excel

Learn how to use INDEX MATCH in Excel to look up values in any column, search to the left, and build flexible formulas with clear examples.

Syntax

=INDEX(return_range, MATCH(lookup_value, lookup_range, [match_type]))

Arguments

What INDEX MATCH does

INDEX MATCH pairs two Excel functions to look up values anywhere in a table. MATCH searches a row or column and returns the position where it finds a match. INDEX then takes that position number and returns the value from another row or column. Unlike VLOOKUP, your lookup column can sit anywhere, even to the right of your return data.

A basic lookup example

Here is a menu price list for a café. The formula in cell B6 uses MATCH to find Mocha in the drink list, then uses INDEX to return its price from the price column.

DrinkPrice
Latte4
Mocha5
Chai3
Espresso2
Mocha

Formula: =INDEX(B2:B5,MATCH(A6,A2:A5,0)) → 5

Look up to the left

VLOOKUP can only search columns to the right of your lookup value. INDEX MATCH does not have this limit. In this kitchen inventory, the item code is in column B and the item name is in column A. The formula in A6 finds code K-25 in column B and returns the item name from column A.

ItemCode
ApronK-12
WhiskK-18
BlenderK-25
TimerK-31
K-25

Formula: =INDEX(A2:A5,MATCH(B6,B2:B5,0)) → Blender

Common mistake: mismatched ranges

A common mistake is using ranges that start or end on different rows. If your return range is B2:B5 and your lookup range is A1:A5, MATCH counts from row 1 while INDEX counts from row 2. Every result will be shifted by one row. Always give both ranges the same starting row and length. In addition, always pass 0 as the third argument in MATCH to avoid unexpected approximate matches.

Related guides

SUM