INDEX MATCH in Excel: Flexible Lookup Examples

INDEX MATCH in Excel tutorial formula and spreadsheet example

What is INDEX MATCH in Excel?

INDEX and MATCH work together to return values from any column. MATCH locates a position; INDEX returns the value at that position.

INDEX MATCH syntax

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

Practice dataset

Enter the following sample values in cells A1 onward. Keep text and numerical data types consistent.

ID Product Price
101 Laptop 899
102 Mouse 25
103 Keyboard 45
104 Monitor 299
105 Webcam 85

Example 1: Find a product’s price

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

Expected result: 45. MATCH returns position 3 within A2:A6; INDEX returns the third price.

Example 2: Find a product name

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

Expected result: Monitor. The return range is independent of the lookup range.

Example 3: Look up to the left

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

Expected result: 103. INDEX returns an ID even though it is left of the Product column.

Example 4: Show a friendly missing-match message

=IFNA(INDEX(B2:B6,MATCH(999,A2:A6,0)),"Not found")

Expected result: Not found. IFNA handles a missing ID without hiding unrelated errors.

Common INDEX MATCH mistakes

  • Use 0 in MATCH for exact matching.
  • Lookup and return ranges should represent the same records.
  • Check numeric versus text ID mismatches.
  • MATCH returns a position, not the cell value; INDEX retrieves the result.

Practice exercises

Recreate the table in Excel, enter the formulas above and change one criterion or input cell. Check which rows qualify and confirm the result manually. Then intentionally enter a missing value to test error handling.

Frequently asked questions

Can INDEX MATCH look left?

Yes. The return and lookup ranges can be in either order.

Is INDEX MATCH still useful when XLOOKUP exists?

Yes, especially for compatibility with older Excel versions.

Continue learning

Visit the Excel Functions module and our XLOOKUP tutorial for related guides.

External reference: Microsoft Support — INDEX MATCH documentation.