Fix an Excel INDEX MATCH Formula Returning a #VALUE! Error
Question details
The user needs to return a percentage from a two-dimensional Excel table using row and column matches.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A row value in column B and a column heading in row 15 identify the percentage to return from the table.
- Observed behavior
- The INDEX formula with two MATCH functions returns a #VALUE! error.
Check that the percentages are in C16:N25, the row labels are in B16:B25, and the column headings are in C15:N15. Confirm that L9 contains the row lookup value and M9 contains the column lookup value.
Correct the two-way INDEX MATCH formula in Excel
Use aligned row and column lookup ranges to return the percentage at their intersection.
In Excel, click the cell where you want the percentage to appear.
Type =INDEX(C16:N25,MATCH(L9,B16:B25,0),MATCH(M9,C15:N15,0)) in the cell or formula bar, then press Enter.
Compare the result with the value where the matching row and column intersect. If needed, select the result cell and choose Home > Number > Percent Style.

Return a table percentage with INDEX MATCH in WPS Spreadsheet
Use the same two-way INDEX MATCH formula in WPS Spreadsheet to find a percentage by row label and column heading.
- 1. Open the workbook: Open WPS Spreadsheet and select Open to choose your Excel workbook.
- 2. Check the lookup cells: Verify that L9 contains the row value, M9 contains the column heading, and the table occupies C16:N25.
- 3. Enter the formula: Click the desired result cell, enter =INDEX(C16:N25,MATCH(L9,B16:B25,0),MATCH(M9,C15:N15,0)), and press Enter.
- 4. Format the result: Select the result cell and use the percentage format in the Home tab if the value should be displayed as a percentage.

Frequently Asked Questions
Why are there two MATCH functions in the formula?
MATCH(L9,B16:B25,0) finds the row position, while MATCH(M9,C15:N15,0) finds the column position. INDEX uses both positions to return the value from C16:N25.
What does an #N/A error mean in this formula?
One of the exact MATCH lookups may not find its value. Check L9 against B16:B25 and M9 against C15:N15, including spelling, extra spaces, and whether numbers are stored as text.
Why must the lookup ranges align with the INDEX range?
Each position returned by MATCH is relative to its lookup range. B16:B25 must correspond to the rows of C16:N25, and C15:N15 must correspond to its columns, or the formula may return the wrong cell.
What happens if a lookup value appears more than once?
With 0 as the match type, MATCH returns the position of the first exact match. Check the row labels or column headings for duplicates if you expect a different result.




