Formula Errors

Fix INDEX MATCH Returning #N/A in Excel 365 for Mac

Steve KSteve K Nov 13, 2026 869 views

Question details

The user needs a formula that returns data based on a model number, a column header selected from a drop-down list, and the first value meeting a greater-than-or-equal condition without returning #N/A.

Fix INDEX MATCH Returning #N/A in Excel 365 for Mac
Product
Microsoft Excel 365 for Mac
Device & OS
macOS
Scenario
The user is building a lookup formula that must combine multiple exact criteria with a closest value or greater-than-or-equal lookup and return matching data without errors.
Observed behavior
The INDEX MATCH formula returns #N/A instead of the expected record or row.
Before you start

Before editing formulas, confirm that the header row used in MATCH covers the same columns as the result range. If you plan to use XLOOKUP match mode 1 or an approximate MATCH, sort the lookup column in ascending order first.

Solution 1Recommended

Use FILTER to return rows that match model, selected header, and a >= condition

Use this solution in Excel 365 for Mac when you need the full row or multiple qualifying rows instead of debugging a nested INDEX MATCH array formula.

FILTER evaluates the model, selected header, and greater-than-or-equal condition as a single dynamic array formula, so it returns matching rows without requiring the legacy Ctrl+Shift+Enter array entry.

The formula uses the header selected in D6 to locate the correct column, then compares that column to the threshold in D9.

1
Select the output cell

Click the cell where you want the filtered result to start. Make sure there is enough blank space below and to the right for the returned rows and columns.

2
Enter the FILTER formula

Type =FILTER(A10:O255,(A10:A255=D5)*(INDEX(A10:O255,0,MATCH(D6,A10:O10,0))>=D9),"No matching row") and press Return.

3
Check the dynamic array result

Confirm that the spilled range contains only the expected rows. If a #SPILL! error appears, clear the cells that are blocking the output range.

Best for dynamic arrays: This replaces the nested INDEX MATCH with a formula that works in Excel 365 and avoids the #N/A caused by a mismatched MATCH lookup array.
Free Microsoft Office alternative

Use WPS Office Spreadsheets as a Free Alternative for Excel 365 Lookup Workbooks

WPS Office is a free, lightweight office suite that opens Excel .xlsx workbooks, preserves formulas, and offers a familiar ribbon interface for Mac and Windows users migrating from Microsoft Excel 365.

Fix and reuse INDEX, MATCH, FILTER, and XLOOKUP formulas in a compatible spreadsheet toolOpen, edit, and save .xlsx files without losing Excel formatting or formulasFree and lightweight office suite with a familiar ribbon interfaceSeamless migration from Excel 365 for Mac with WPS Office for MacBuilt-in templates and WPS AI tools help document and audit lookup workbooks
microsoft office alternative - wps office

Frequently Asked Questions

Why does my INDEX MATCH formula still show #N/A after I fix the syntax?

Usually a hidden space, trailing apostrophe, or text-number mismatch prevents Excel from matching values. Use =ISNUMBER(cell) to check numeric cells, run Data > Text to Columns to convert text numbers, and use Find & Replace to remove spaces.

Can I use FILTER instead of INDEX MATCH in Excel 365 for Mac?

Yes. Enter =FILTER(A10:O255,(A10:A255=D5)*(INDEX(A10:O255,0,MATCH(D6,A10:O10,0))>=D9),"No matching row") to return all rows that meet the model, selected header, and greater-than-or-equal condition.

Does XLOOKUP match mode 1 require sorted data?

Yes. Match mode 1 performs an exact match or next larger match, so the lookup array must be sorted in ascending order. If the data cannot be sorted, use FILTER with a >= condition instead.

What should I check when the header selected from a drop-down list is not matching any column?

Make sure the MATCH header range, for example A10:O10, includes the drop-down header's exact text, including capitalization and trailing spaces. Also confirm the range covers the same columns as the result range.

How do I return the first value that is greater than or equal to D9 without sorting?

Use FILTER to qualify the values and wrap the result in MIN: =MIN(FILTER(INDEX(A10:O255,0,MATCH(D6,A10:O10,0)),(A10:A255=D5)*(INDEX(A10:O255,0,MATCH(D6,A10:O10,0))>=D9))). This returns the smallest qualifying value without changing the sort order.