Fix Excel INDEX MATCH for a Percentage Between Two Limits
Question details
Find the value at the intersection of a matching row and the column whose percentage limits contain the input.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A row lookup value is in B15, a percentage is in C15, and each table column has lower and upper percentage limits.
- Observed behavior
- The INDEX MATCH formula returns #N/A instead of the value for the matching percentage range.
Check that B1:F1 contains upper limits, B2:F2 contains lower limits, A3:A9 contains row labels, and B3:F9 contains the corresponding results. Make sure C15 and the limits are numeric percentages rather than text.
Match the Percentage Against Both Limits
Use this formula when each result column has a lower and upper percentage limit.
The formula finds the row matching B15 and the first column where C15 is greater than or equal to the lower limit and less than or equal to the upper limit. Keep the bounds and result columns aligned.
Select the cell where you want the result and enter =INDEX(B3:F9,MATCH(B15,A3:A9,0),MATCH(1,(C15>=B2:F2)*(C15<=B1:F1),0)). Adjust the ranges if your table is in different cells.
Press Enter in current Excel versions. In older Excel versions, press Ctrl+Shift+Enter to confirm it as an array formula.
If the result is still #N/A, compare B15 with the labels in A3:A9 and check that C15 falls within at least one pair of limits in rows 1 and 2.

Match Percentage Limits in WPS Spreadsheet
Use INDEX and MATCH in WPS Spreadsheet to find a row and return the value for the percentage range that contains your input.
- 1. Open the workbook: In WPS Spreadsheet, select Open and choose the workbook containing your lookup table.
- 2. Check the table: Confirm that B1:F1 holds upper limits, B2:F2 holds lower limits, A3:A9 holds row labels, and B3:F9 holds the results.
- 3. Enter the lookup formula: Select an empty result cell and enter =INDEX(B3:F9,MATCH(B15,A3:A9,0),MATCH(1,(C15>=B2:F2)*(C15<=B1:F1),0)).
- 4. Confirm and test: Press Enter and test values in B15 and C15. If your WPS version requires array formula entry, select the formula cell and confirm it with Ctrl+Shift+Enter.

Frequently Asked Questions
Why does the formula still return #N/A?
Check that B15 exactly matches an entry in A3:A9 and that C15 falls between at least one lower limit in B2:F2 and its corresponding upper limit in B1:F1. Also check that the percentages are numbers, not text.
Do the percentage limits need to be sorted?
Not for the Boolean formula: MATCH searches for the first column where both limit conditions are true. Approximate MATCH formulas, by contrast, require the lookup range to be sorted in the appropriate order.
What happens when the percentage equals a limit?
The formula includes both endpoints because it uses >= and <=. If adjacent ranges share an endpoint, the first matching column is returned.
Why are the result and limit ranges the same width?
Each position in B1:F1 and B2:F2 must correspond to the same column in B3:F9. If you extend the limits to column G, extend the result range to G as well.




