Formula Errors

How to Fix VLOOKUP and XLOOKUP Formula Errors in Excel

Jason MillerJason Miller Nov 18, 2026 869 views

Question details

The user needs to correct VLOOKUP and XLOOKUP formulas that reference the wrong lookup cell or use invalid range arguments.

How to Fix VLOOKUP and XLOOKUP Formula Errors in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Look up the value in K2229 in column C and return the corresponding value from column D.
Observed behavior
The example formulas use incorrect cell references and arguments, preventing the intended lookup result.
Before you start

Confirm that K2229 contains the value to find, that C5:C2315 contains the lookup values, and that D5:D2315 contains the corresponding results. If your data is in different cells, adjust the references in the formulas.

Solution 1Recommended

Correct the VLOOKUP Formula for an Exact Match

Use VLOOKUP when the lookup values are in the first column of a table range and the result is in a column to its right.

1
Select the result cell

In Excel, select the cell where you want the result, such as L2229.

2
Enter the corrected formula

In the formula bar, enter =VLOOKUP(K2229,C5:D2315,2,FALSE) and press Enter.

3
Check the arguments

In the formula bar, verify that K2229 is the lookup cell, C5:D2315 is the table range, 2 selects column D, and FALSE requests an exact match.

Correct the VLOOKUP Formula for an Exact Match
If the result is #N/A: Check that the value in K2229 exists in column C and that matching values do not have extra spaces or conflicting text and number formats.
Correct lookup formulas in WPS

Use VLOOKUP to Correct Lookup Results in WPS Spreadsheet

Open your workbook in WPS Spreadsheet and use an exact-match VLOOKUP formula to find a value in column C and return the corresponding value from column D.

  1. 1. Open the workbook: Open WPS Spreadsheet, select Open, and choose your Excel workbook.
  2. 2. Select the result cell: Click the cell where you want the lookup result, such as L2229.
  3. 3. Enter the formula: In the formula bar, enter =VLOOKUP(K2229,C5:D2315,2,FALSE) and press Enter.
  4. 4. Check the result: Compare the result with the matching row in columns C and D. If you see #N/A, check the lookup value and its formatting.
Correct lookup results with an exact-match VLOOKUP formulaOpen and edit Microsoft Excel XLSX and XLS filesWork with spreadsheets using a familiar interfaceUse WPS Office for free
microsoft office alternative - wps office

Frequently Asked Questions

Why does my VLOOKUP formula return #N/A?

With FALSE as the last argument, VLOOKUP requires an exact match. Check that the value in K2229 appears in C5:C2315 and that extra spaces or text-versus-number formatting are not preventing a match.

Why does VLOOKUP need 2 instead of D5:D2315?

VLOOKUP's third argument is a column number within the selected table range, not a separate return range. In C5:D2315, column D is the second column, so use 2.

Do XLOOKUP ranges have to be the same size?

For this vertical lookup, the lookup and return ranges must have the same number of rows and correspond row by row. Use C5:C2315 and D5:D2315 rather than ranges with different endpoints.

What if Excel does not recognize XLOOKUP?

Your Excel version may not support XLOOKUP. Use =VLOOKUP(K2229,C5:D2315,2,FALSE) instead, or open the workbook in an Excel version that supports XLOOKUP.