Formula Errors

Fix an Excel INDEX MATCH Formula Returning a #VALUE! Error

John WilsonJohn Wilson Nov 18, 2026 870 views

Question details

The user needs to return a percentage from a two-dimensional Excel table using row and column matches.

Fix an Excel INDEX MATCH Formula Returning a #VALUE! Error
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.
Before you start

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.

Solution 1Recommended

Correct the two-way INDEX MATCH formula in Excel

Use aligned row and column lookup ranges to return the percentage at their intersection.

1
Select the result cell

In Excel, click the cell where you want the percentage to appear.

2
Enter the formula

Type =INDEX(C16:N25,MATCH(L9,B16:B25,0),MATCH(M9,C15:N15,0)) in the cell or formula bar, then press Enter.

3
Check the result

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.

Correct the two-way INDEX MATCH formula in Excel
How the matches work: The first MATCH returns a row position and the second returns a column position. Both use 0 for an exact match. If your Excel regional settings use semicolons as argument separators, replace the commas with semicolons.
WPS Spreadsheet

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. 1. Open the workbook: Open WPS Spreadsheet and select Open to choose your Excel workbook.
  2. 2. Check the lookup cells: Verify that L9 contains the row value, M9 contains the column heading, and the table occupies C16:N25.
  3. 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. 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.
Match both a row label and a column heading in one formulaOpen and edit Microsoft Excel XLS and XLSX filesFormat lookup results as percentagesWork in a familiar spreadsheet interface
microsoft office alternative - wps office

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.