INDEX MATCH in Excel allows you to look up a value in a table and return a corresponding value from another column, offering more flexibility than VLOOKUP by enabling leftward lookups and avoiding column index limitations. This method combines the INDEX function, which returns a value from a specified position, with the MATCH function, which finds the position of a lookup value. Together, they create a powerful lookup tool ideal for dynamic data retrieval.

What You'll Need

  • Microsoft Excel (any recent version: 2010, 2013, 2016, 2019, 2021, or Microsoft 365)
  • A dataset with at least two columns: one for the lookup value and one for the result you want to return
  • Basic familiarity with Excel formulas and cell references

Step-by-Step

  1. Open your Excel workbook and locate the table containing the data you want to search. For example, suppose you have employee IDs in column A (A2:A100), names in column B (B2:B100), and departments in column C (C2:C100).
  2. Click on the cell where you want the result to appear — this is where you’ll enter the INDEX MATCH formula.
  3. Start the formula by typing =INDEX(, then select the range of cells that contains the value you want to return. In this example, if you want to return the department, select C2:C100. After selecting, type a comma.
  4. Now type MATCH( to begin the nested MATCH function. This will find the position of your lookup value.
  5. Inside MATCH, first enter the lookup value — this can be a cell reference (e.g., E2 if your search term is in E2) or a direct value in quotes (e.g., "105"). After the lookup value, type a comma.
  6. Next, specify the lookup array — the range where Excel should search for the lookup value. In our example, this is the employee ID column: A2:A100. Type a comma after selecting this range.
  7. For the match type, enter 0 to ensure an exact match. This is critical; using 1 or -1 assumes sorted data and can return incorrect results. Close the MATCH function with a parenthesis.
  8. Close the INDEX function with a closing parenthesis. Your full formula should now look like: =INDEX(C2:C100, MATCH(E2, A2:A100, 0))
  9. Press Enter. Excel will return the department corresponding to the employee ID in E2.
  10. To copy the formula down for multiple lookups, click the fill handle (small square at the bottom-right of the cell) and drag it down, or double-click it to auto-fill based on adjacent column data.

Common Mistakes

  • Using VLOOKUP-style column numbers in INDEX: Remember, INDEX uses a row number from MATCH, not a column index. The first argument of INDEX is the return column, not a table array.
  • Forgetting to lock ranges with absolute references ($) when copying formulas: If you drag the formula and see incorrect results, check whether your ranges shifted. Use $A$2:$A$100 instead of A2:A100 if the lookup table shouldn’t move.
  • Using approximate match (1 or -1) unintentionally: Always use 0 in MATCH for exact matches unless you specifically need a sorted lookup and understand the implications.
  • Mismatched ranges: The lookup array in MATCH and the return array in INDEX must cover the same number of rows, even if they’re different columns. If MATCH searches A2:A100, INDEX should return from a range like C2:C100 — same start and end rows.
  • Extra spaces or non-printing characters in data: These can cause MATCH to fail even when values appear identical. Use TRIM or CLEAN if needed.

Tips

  • Use named ranges to make formulas easier to read: Define names like EmpID for A2:A100 and Dept for C2:C100, then write =INDEX(Dept, MATCH(E2, EmpID, 0)).
  • Combine with IFERROR to handle missing values gracefully: =IFERROR(INDEX(C2:C100, MATCH(E2, A2:A100, 0)), "Not Found") returns a custom message instead of #N/A.
  • INDEX MATCH works leftward: Unlike VLOOKUP, you can look up a value in column C and return a value from column A — no need to reorganize your data.
  • For multiple criteria, use INDEX MATCH with concatenation or boolean logic: For example, to match both first and last name, use =INDEX(C2:C100, MATCH(1, (A2:A100=F2)*(B2:B100=G2), 0)) and press Ctrl+Shift+Enter in older Excel versions (or just Enter in 365/2021 if dynamic arrays are supported).
  • Always verify your match type: Unless you’re performing a range lookup on sorted data (e.g., tax brackets), use 0 for exact matches.

Troubleshooting

  • If you get #N/A: First, confirm the lookup value exists in the lookup array. Check for typos, extra spaces, or formatting differences (e.g., number stored as text vs. actual number). Use =ISNUMBER(MATCH(E2, A2:A100, 0)) to test — if it returns FALSE, the value isn’t found.
  • If you get #VALUE!: This often means the ranges are incompatible sizes or you’ve used text where numbers are expected. Ensure all ranges are single columns and the same height.
  • If the result is wrong but no error appears: Double-check that your MATCH is using 0 for exact match and that your INDEX range aligns correctly with the MATCH result.
  • If the formula doesn’t update when source data changes: Ensure automatic calculation is enabled (Formulas > Calculation Options > Automatic).
  • In older Excel versions, array formulas (like those with multiple criteria) require Ctrl+Shift+Enter. If you see curly braces {} in the formula bar, it was entered correctly; if not, edit and re-enter with the shortcut.

Frequently Asked Questions

Can INDEX MATCH return multiple values?

Not directly — it returns the first match by default. To return multiple values, use FILTER (in Excel 365/2021) or combine INDEX SMALL IF with array formulas for legacy versions.

Is INDEX MATCH faster than VLOOKUP?

Yes, especially in large datasets. INDEX MATCH only processes the lookup and return columns, while VLOOKUP scans the entire table array column by column.

Can I use INDEX MATCH across different worksheets?

Yes. Simply reference the sheet name in the ranges, like =INDEX(Sheet2!C:C, MATCH(A2, Sheet2!A:A, 0)).

What if my lookup value appears more than once?

MATCH returns the position of the first occurrence only. To get the last match, reverse the search with LOOKUP or use AGGREGATE; for all matches, use FILTER or Power Query.

Do I need to sort my data for INDEX MATCH to work?

No — when using match type 0, INDEX MATCH works on unsorted data. Sorting is only required for approximate matches (1 or -1).

Can I replace all my VLOOKUPs with INDEX MATCH?

Yes, and it’s often recommended. INDEX MATCH is more flexible, less prone to breaking when columns are inserted, and supports leftward lookups.