Fix a #REF! Error in an Excel INDEX MATCH Formula
Question details
Fix an INDEX MATCH formula that requests a column outside its return range.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user wants to look up the value in C8 against column B and return a value from another column in an external workbook.
- Observed behavior
- The formula returns #REF! because it requests column 11 from an INDEX range that contains only one column.
Check which column should supply the result and open the referenced workbook so you can verify its sheet name and ranges. Confirm that the lookup and return ranges cover the same rows.
Remove the column number to return a value from column K
Use this solution when column K is the intended return column.
Select the cell showing #REF! and click the formula bar. Remove the final column-number argument, 11, from the INDEX function.
Use =INDEX('[Workbook.xlsx]Sheet0'!K11:K93,MATCH(C8,'[Workbook.xlsx]Sheet0'!B11:B93,0)), replacing the workbook and sheet names with your own.
Press Enter. Excel should return the value from column K on the row where column B exactly matches C8.

Expand the INDEX range to include the eleventh column
Use this solution when you intend to return the eleventh column of a wider range rather than column K.
Correct the INDEX MATCH formula in WPS Spreadsheet
Open the workbooks in WPS Spreadsheet and edit the INDEX range or column argument to return a value from the intended column.
- 1. Open the workbooks: In WPS Spreadsheet, use Menu > Open to open the workbook with the formula and the referenced workbook.
- 2. Select the formula cell: Click the cell showing #REF! and select its formula in the formula bar.
- 3. Correct the INDEX arguments: If the return range is K11:K93 and you want column K, remove the final 11 argument. If you need the eleventh column of a wider range, expand the range to K11:U93 and keep 11.
- 4. Apply the change: Press Enter and check that the result comes from the intended row and column.

Frequently Asked Questions
Why does column number 11 cause #REF! in K11:K93?
INDEX counts columns within its selected range, not across the worksheet. K11:K93 contains only one column, so column 11 is outside the range.
Which column does INDEX return from K11:U93 when the column number is 11?
It returns a value from column U, the eleventh column of the K:U range. The MATCH result determines which row in that range to use.
Why does the corrected formula return #N/A instead?
MATCH with 0 requires an exact match. Check that C8 exists in B11:B93 and that differences such as extra spaces or numbers stored as text are not preventing a match.
Should I use commas or semicolons in the formula?
Use the argument separator required by your Excel regional settings. If Excel does not accept commas, replace the commas between function arguments with semicolons.




