Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel INDEX MATCH with Multiple Criteria: How-To

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, INDEX MATCH can look up a value using two or more criteria at once, and it works in every modern version of Excel without any add-ins. The classic method multiplies the criteria ranges together inside MATCH, producing a single array of 1s and 0s that pinpoints the exact row where all conditions are true. If you have Excel 365 or Excel 2021, you can also use the newer FILTER function, but INDEX MATCH remains the most compatible approach and is the one this guide covers.

What You'll Need

  • A spreadsheet where the data is arranged in columns (a table), for example: Product in column A, Region in column B, Month in column C, Sales in column D.
  • Your lookup criteria written in cells, so you can change them without editing the formula.
  • Any version of Excel from Excel 2010 onward. In older versions you must confirm the formula with Ctrl+Shift+Enter; in Excel 365 and Excel 2021 a plain Enter is enough.

Step-by-Step

  1. Set up your data. Make sure each column has a clear header and no merged cells. In this example: A2:A100 = Product, B2:B100 = Region, C2:C100 = Month, D2:D100 = Sales.
  2. Put your criteria in cells. For example, F1 = the product name, F2 = the region, F3 = the month. Never hard-code criteria into the formula itself if you want to reuse it.
  3. Click the cell where you want the result, for example F5.
  4. Type the formula: =INDEX(D2:D100,MATCH(1,(A2:A100=F1)*(B2:B100=F2)*(C2:C100=F3),0))
  5. Confirm the formula. In Excel 365 or Excel 2021 press Enter. In Excel 2019, 2016, 2013 or 2010 press Ctrl+Shift+Enter instead; you will see curly braces appear around the formula in the formula bar.
  6. Test it. Change the criteria in F1:F3 and confirm the result updates to the correct row.
  7. Lock ranges if you will copy the formula. Use absolute references such as $A$2:$A$100 and $D$2:$D$100 so the ranges do not shift when you drag the formula to other cells.

How it works: each comparison like A2:A100=F1 returns an array of TRUE/FALSE values. Multiplying the arrays converts TRUE/FALSE to 1/0, so only the row where every criterion is met produces a 1. MATCH(1,...,0) finds that row, and INDEX returns the value from the same position in the result column.

Common Mistakes

  • Ranges of different lengths. Every range in the formula must cover exactly the same rows. A2:A100 with B2:B101 will fail or return wrong results.
  • Forgetting Ctrl+Shift+Enter in older Excel. Without it, pre-365 versions return #N/A or a wrong value.
  • Trailing spaces or mismatched types. "Apple " does not equal "Apple", and the number 100 does not match the text "100". Use TRIM to clean text or VALUE to convert text to numbers.
  • Dates stored as text. If your criteria include a date, make sure the column and the criteria cell are both real dates, not text.
  • Expecting multiple results. MATCH returns only the first match. If several rows meet all criteria, the formula silently returns the first one.
  • Whole-column references. Using A:A instead of a bounded range makes array formulas very slow. Limit ranges to your actual data.

Tips

  • Wrap it in IFERROR to show a friendly message instead of #N/A: =IFERROR(INDEX(...),"Not found").
  • Use a helper column for speed and simplicity. Add a column that concatenates the key columns with =A2&"|"&B2&"|"&C2, then run a simple MATCH against that single column. This avoids array entry entirely and is easier to audit.
  • In Excel 365, consider FILTER for returning all matches: =FILTER(D2:D100,(A2:A100=F1)*(B2:B100=F2)). It spills every matching row, not just the first.
  • Convert your data to an official Excel Table (Insert > Table) so ranges expand automatically when you add rows. Note that menu labels can differ slightly between Excel versions.
  • Debug with F9. In the formula bar, select a portion of the formula (for example A2:A100=F1) and press F9 to see the intermediate result. Press Esc to cancel.

Troubleshooting

  • #N/A error: No row satisfies all criteria. Check spelling, extra spaces (wrap text criteria in TRIM), number-versus-text mismatches, and that each criteria cell actually contains what you think.
  • #VALUE! error: The ranges are different sizes, or you forgot Ctrl+Shift+Enter in an older version of Excel. Re-check that every range starts and ends on the same row.
  • Wrong value returned: There are probably duplicate matches and you are seeing the first one. Filter the source data manually to confirm how many rows meet the criteria.
  • Formula works but is slow: Shrink the ranges to the real data size, sort out whole-column references, or switch to the helper-column method.
  • Curly braces disappeared: You edited the formula without re-confirming as an array formula. Re-enter with Ctrl+Shift+Enter if you are not on Excel 365/2021.

Frequently Asked Questions

Does this work in Google Sheets?

Yes. The same formula works in Google Sheets with a plain Enter; the ARRAYFORMULA behavior is handled automatically for this pattern.

Can I use more than three criteria?

Yes. Just keep multiplying additional comparisons inside MATCH: ...*(C2:C100=F3)*(E2:E100=F4). Each extra criterion adds one more array to multiply.

How do I return a whole row instead of one cell?

Point INDEX at a multi-column range, for example A2:D100, and omit the column argument: =INDEX(A2:D100,MATCH(1,...,0),0). In Excel 365 this spills across the row.

Can INDEX MATCH with multiple criteria be case-sensitive?

Not by default. For case-sensitive matching, add EXACT to the array, such as (EXACT(A2:A100,F1)), which requires Ctrl+Shift+Enter in older Excel versions.

Is this better than VLOOKUP with a helper column?

Functionally both work. The array formula needs no extra column; the helper column is faster on very large datasets and easier for others to follow. Choose based on your data size and audience.