If an Excel INDEX MATCH formula with multiple criteria returns a blank, the most common reason is that it found a matching row whose return cell is empty; other likely causes include mismatched data types, spaces, or criteria that do not match exactly. Check the returned cell first, then test each condition separately and confirm that the formula’s ranges line up.
How INDEX MATCH with multiple criteria works
INDEX returns a value from a specified range, while MATCH locates a position in a lookup range. To apply multiple conditions, a formula can test each condition across the rows and match the first row where all tests are true. In Microsoft 365 for Windows, this pattern works as an array formula without pressing Ctrl+Shift+Enter.
For example, suppose a worksheet has departments in A2:A100, employee names in B2:B100, and bonus amounts in C2:C100. To find the bonus for the Sales department and Riley, use:
=INDEX(C2:C100,MATCH(1,(A2:A100="Sales")*(B2:B100="Riley"),0))
Here, the two comparisons produce arrays of TRUE and FALSE values. Multiplying them converts TRUE to 1 and FALSE to 0; a row matching both criteria produces 1. MATCH finds the first 1, and INDEX returns the value at the corresponding position in C2:C100. If that bonus cell is empty, the formula can appear blank even though the match succeeded.
Find out whether the match or the return cell is blank
Start by checking the cell that should be returned. With the example layout above, if the formula finds row 7, inspect C7 directly. A genuinely empty cell and a formula that returns an empty string can both look blank. The latter is often produced by a formula such as =IF(A1=0,"",A1). INDEX can return that empty-string result, making a successful lookup look like a failed one.
To reveal which row matched, use this diagnostic formula. With departments in A2:A100 and names in B2:B100, it returns the worksheet row number for the first row meeting both conditions:
=MATCH(1,(A2:A100="Sales")*(B2:B100="Riley"),0)
The result is a position within the ranges, not the worksheet row number: if it returns 5, the match is on row 6 because the ranges begin at row 2. If it returns #N/A, there is no exact match for both criteria as written. If it returns a position, check the corresponding return cell and whether that cell contains a formula returning an empty string.
Check criteria and data for hidden differences
Values that look identical may not compare as expected. Common causes include extra spaces, nonprinting characters, different spellings, and numbers stored as text in one range but as numbers in another. For example, a cell containing the text “0123” is not necessarily equivalent to the numeric value 123. Dates can also be stored as text rather than as Excel date values.
- Check spaces: Compare the source and lookup values in the formula bar. TRIM can remove ordinary leading, trailing, and repeated spaces from text, but it does not remove every nonbreaking space copied from websites.
- Check types: Confirm that a code or number is stored consistently in both the data and criteria cells. Avoid converting identifiers to numbers if leading zeroes matter.
- Check spelling and punctuation: A different hyphen, apostrophe, or trailing character can prevent an exact match.
- Check dates: Make sure both the stored date and the criterion are actual date values, not text that merely looks like a date.
To test one condition at a time, use COUNTIF with the example department range and criterion:
=COUNTIF(A2:A100,"Sales")
With names in B2:B100 and the name criterion Riley, test the second condition separately:
=COUNTIF(B2:B100,"Riley")
If either count is zero, fix that criterion or its source data before troubleshooting the combined formula. A positive count for each condition does not prove that both occur on the same row; the combined MATCH test does that.
Verify ranges, duplicates, and formula entry
All ranges in the formula must cover the same rows. A2:A100, B2:B100, and C2:C100 are aligned; mixing A2:A100 with B3:B101 shifts the conditions relative to the returned values and can produce the wrong result or an error. When expanding a formula, update every range consistently.
INDEX MATCH returns the first row satisfying all criteria. If duplicate rows exist, the result may come from an earlier row whose return cell is empty, even when a later matching row contains a value. Check for duplicates and decide whether the first match is the intended one. If every matching record matters, a single INDEX MATCH is not designed to return all of them.
In current Microsoft 365, press Enter to enter the array formula. Older Excel versions may require Ctrl+Shift+Enter for formulas that evaluate arrays this way; Excel then displays braces around the formula, which should not be typed manually. If a formula was copied from another application, also check that it begins with =, uses straight quotation marks, and has balanced parentheses. In Excel’s regional settings, list separators may be semicolons instead of commas; use the separator Excel expects on that computer.
Make blanks and errors easier to interpret
Wrapping the lookup in IFERROR can hide #N/A, but it can also conceal range mistakes and other problems. During diagnosis, leave the error visible. Once the formula is verified, IFNA can provide a message specifically when no match is found. With the same example ranges, use:
=IFNA(INDEX(C2:C100,MATCH(1,(A2:A100="Sales")*(B2:B100="Riley"),0)),"No match")
This displays “No match” when MATCH cannot find a qualifying row, but it does not replace a blank return value with that message: a successful match to an empty C cell still returns blank. If you need to distinguish an empty result from no match, first identify the matching row with MATCH, then inspect its return cell. Avoid changing blanks to zero unless zero is the intended meaning, since a zero amount and a missing value are different.
INDEX MATCH versus other lookup options
INDEX MATCH remains useful when a workbook needs a flexible lookup that works in older Excel versions. In Microsoft 365 or Excel 2021 and later, XLOOKUP can express a multiple-condition lookup by combining the same TRUE/FALSE tests. With departments in A2:A100, names in B2:B100, and amounts in C2:C100, an equivalent first-match formula is:
=XLOOKUP(1,(A2:A100="Sales")*(B2:B100="Riley"),C2:C100,"No match")
XLOOKUP’s fourth argument supplies a result when no match exists, but a matched blank return cell can still appear blank. FILTER, also available in Microsoft 365 and Excel 2021 or later, is more suitable when you want all rows meeting the criteria rather than only the first. Choosing a different function will not fix mismatched data or a genuinely empty return cell; diagnose the underlying data either way.
Frequently Asked Questions
Why does INDEX MATCH return 0 instead of blank?
Excel may display a zero when the matched return cell is empty, depending on how the formula and workbook settings handle the reference. Check the source cell and whether it contains a formula, then decide whether zero is meaningful before hiding or replacing it.
Why does the formula return #N/A?
Usually, no row satisfies every criterion exactly. Test each condition, check for spaces and type mismatches, and verify that the ranges start and end on the same rows. #N/A is different from a successful match to an empty return cell.
Does INDEX MATCH with multiple criteria need Ctrl+Shift+Enter?
In Excel for Microsoft 365, no: enter the formula with Enter. Some older Excel versions require Ctrl+Shift+Enter for this array calculation. Follow the behavior of the Excel version in which the workbook is being used.
Can INDEX MATCH return every matching row?
No. This pattern returns the first match. In Microsoft 365 or Excel 2021 and later, consider FILTER when you need all matching records; otherwise, use an approach suited to the workbook’s Excel version and layout.
Does INDEX MATCH distinguish uppercase and lowercase?
No. Standard equality comparisons and MATCH with match type 0 are not case-sensitive. If capitalization must determine the match, use a case-sensitive approach such as one based on EXACT rather than assuming the usual formula checks letter case.
Related
- Google Sheets INDEX MATCH With Multiple Criteria Guide
- Google Sheets COUNTIF With Multiple Criteria Explained
- Multiple SUMIFS in Google Sheets: Criteria and Examples
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- Excel TEXT Formula for Dates: Format Dates ClearlyIf A2 contains a real Excel date, use =TEXT(A2,"mmmm d, yyyy") to display it as text such as…
- Excel Weekday From Date: Formulas That WorkTo get the weekday for a date in Excel, use =WEEKDAY(A2,2) when the date is in cell A2;…
- Sort an Entire Excel Spreadsheet by One ColumnTo sort an entire Excel spreadsheet by one column, click a cell in your data, choose Data >…
- Subtotal Formula for Serial Number?The direct answer: there is no single built-in Excel formula that automatically generates serial numbers for subtotals. Instead,…
- Excel Formula for Checking Account? Track BalancesThe quickest formula to track a checking account in Excel is a running balance: with your starting balance…
- Balloon Payment Calculation: Formula & ExampleA balloon payment is calculated by taking the full loan amount, computing the monthly payments as if the…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.