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
fx=INDEX(return_range, MATCH(lookup_value, lookup_range, [match_type]))
Arguments
return_range(required)The range of cells containing the value you want to return.
lookup_value(required)The value or cell reference you want to search for.
lookup_range(required)The single row or column of cells you want to search through.
match_type(optional)0 for an exact match. If you leave it out, Excel uses 1 (approximate match on data sorted ascending), so always pass 0 for lookups.
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.
| Drink | Price |
| Latte | 4 |
| Mocha | 5 |
| Chai | 3 |
| Espresso | 2 |
| 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.
| Item | Code |
| Apron | K-12 |
| Whisk | K-18 |
| Blender | K-25 |
| Timer | K-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.