Templates, guides & honest tool reviews for small business

Sunday, November 29, 2026

INDEX MATCH Formula in Excel: Step by Step with Two Criteria

INDEX MATCH formula in Excel: look up a value in any column
Illustration: INDEX MATCH formula in Excel

The INDEX MATCH formula in Excel looks up a value in one column and returns a value from any other column, including columns to the left. It is a flexible alternative to VLOOKUP and works in every modern version of Excel and in Google Sheets. This guide explains the two parts, gives a step by step example with made-up data, and shows how to look up with two criteria.

What INDEX and MATCH do

MATCH finds the position of a value in a list. INDEX returns the value at a given position in a list. Together, MATCH finds the row and INDEX returns the answer from that row.

  • MATCH(lookup_value, lookup_range, 0) returns a position. The 0 means exact match.
  • INDEX(return_range, position) returns the item at that position.
INDEX MATCH in Excel step by step: price lookup by product code
Made-up product list (illustration).

INDEX MATCH step by step

Say column A holds product codes, column B holds product names and column C holds prices, with data in rows 2 to 6. You want the price for the code typed in F1.

  1. Write the MATCH part: MATCH(F1, A2:A6, 0). It returns the row position, such as 3.
  2. Write the INDEX part with the price column: INDEX(C2:C6, 3).
  3. Put the MATCH inside the INDEX in place of the 3.

The final formula is:

=INDEX(C2:C6, MATCH(F1, A2:A6, 0))

INDEX MATCH in Excel to look up to the left, which VLOOKUP cannot do
Return a column on the left (illustration).

Look up to the left

VLOOKUP cannot return a value from a column to the left of the lookup column. INDEX MATCH can. To find the code (column A) from a product name (column B):

=INDEX(A2:A6, MATCH(F1, B2:B6, 0))

INDEX MATCH in Excel with two criteria: region and product
Multiply two tests (illustration).

INDEX MATCH with two criteria

To match on two columns, such as region in column A and product in column B, you can use an array formula. In current versions of Excel it works as a normal formula, and in older versions you may need Ctrl+Shift+Enter:

=INDEX(C2:C6, MATCH(1, (A2:A6=F1)*(B2:B6=G1), 0))

Each test gives TRUE or FALSE. Multiplying them gives 1 only where both are true, and MATCH finds the first 1. Check the result on a few rows.

INDEX MATCH with IFERROR to show a Not found message in Excel
Handle a missing value (illustration).

Hide the #N/A error

If the lookup value is not in the list, MATCH returns #N/A. Wrap the formula in IFERROR to show a message:

=IFERROR(INDEX(C2:C6, MATCH(F1, A2:A6, 0)), "Not found")

If you see #N/A when the value looks present, read our guide on why VLOOKUP returns #N/A, since the causes are the same.

INDEX MATCH or XLOOKUP?

XLOOKUP is newer and shorter, but it is not in older versions of Excel. INDEX MATCH works everywhere. See our comparison of XLOOKUP vs VLOOKUP.

Common INDEX MATCH mistakes

  • Forgetting the 0. Without it MATCH may use an approximate match. Use 0 for exact.
  • Ranges of different sizes. The return range and lookup range should have the same number of rows.
  • Unlocked ranges. Lock them with dollar signs, like $A$2:$A$6, before you copy the formula down.
  • Data type mismatch. A number stored as text will not match a real number.

INDEX MATCH in Excel: common questions

Is INDEX MATCH faster than VLOOKUP?

We have not tested speed, so we will not claim it. Its main benefit is flexibility, such as looking left and not breaking when columns are inserted.

Does it work in Google Sheets?

Yes, with the same arguments.

Can INDEX MATCH return a whole row?

It can with some changes, but a simple lookup of one value is the common use.

Related guides on Sheets AI Hub

Read IF with AND and OR and Excel automation tips.

العربية