Back to Blog

How to Use INDEX MATCH in Excel

D
David DeSouza
Dec 1, 2025
An illustration showing a large grid, resembling a spreadsheet or table, filled with checkmarks and 'X' marks in various colors such as black, white, and red. The grid has four rows and five columns, with cells colored in light orange/beige and outlined in dark purple. Two stylized, faceless people stand on either side of the grid. The person on the left, with dark red hair and wearing a light brown top and dark red pants, holds up a red circle with a white 'X' mark, appearing to interact with a cell. The person on the right, also with dark red hair and wearing a dark red top and pants, has their thumb up (thumbs-up gesture) at the edge of the grid. A large, abstract, light orange/beige shape, possibly representing a cloud or a curved element, is partially visible at the top and bottom of the image, behind the grid. Decorative dotted patterns in dark red or purple are scattered on the left and right

The Problem

VLOOKUP has a flaw: it only looks right. If your ID is to the right of the value you want, VLOOKUP fails. INDEX MATCH solves this.

The Easy Way: Use SheetXAI

If you don't want to mess with formulas, the fastest way to do this is simply by asking.

With SheetXAI, you can open the sidebar and type:

Look up the email for these IDs using the data in range D:F.

SheetXAI will instantly write the formula or script for you and fill the cells. It handles the syntax so you can focus on the result.

The Manual Way: The Formulas You Need

To do this manually, you need to use: INDEX and MATCH.

1. MATCH

Finds the row number where a value exists.

Syntax: =MATCH(lookup_value, lookup_array, [match_type])

  • lookup_value: The value to find.
  • lookup_array: The column to search in.
  • [match_type]: 0 for exact match.

Example: Finds that "ID-123" is in row 5.

2. INDEX

Returns the value at a specific row and column.

Syntax: =INDEX(array, row_num, [column_num])

  • array: The column containing the return value.
  • row_num: The row number to get (calculated by MATCH).

Example: Gets the value from row 5.

Understanding the Logic

  1. MATCH finds the row number of the ID.
  2. INDEX goes to that row number in the Email column and returns the text.

The Final Formula:

=INDEX(B:B, MATCH(A2, C:C, 0))

Conclusion

Now you know the "classic" way to solve this using formulas. It's a great skill to have.

But for those times when you just want the job done without the mental math, SheetXAI is there to help.

Boost your productivity today.
Start automating your spreadsheets.

Join thousands of professionals saving hours every week. No credit card required to start.

Learn more