Fix Excel VLOOKUP Returns #N/A When Value Exists
Question details
The user is encountering a #N/A error when using the VLOOKUP function, despite the fact that the lookup value visually exists in the source data.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Pulling data from a source table using the VLOOKUP function across multiple rows.
- Observed behavior
- The VLOOKUP formula evaluates to an #N/A error because the defined table array does not extend far enough to include the rows where the target data is actually located.
Before modifying your formula, verify that there are no hidden trailing spaces or formatting discrepancies between your lookup value and the source data, as these can also cause #N/A errors.
Expand and Correct the Table Array Range
Fix the #N/A error by expanding the VLOOKUP lookup range to include all the rows in your dataset.
One of the most common causes for a VLOOKUP #N/A error is an incomplete table array. If your data extends down to row 76 but your formula only looks up to row 50, any match located below row 50 will trigger an error.
Select the cell containing the VLOOKUP formula that is returning the #N/A error.
Look at the formula bar at the top of your screen to review the formula arguments, focusing on the second argument which represents the table_array.
Modify the table array range so it encompasses all necessary data rows. For example, change 'Sheet1!$A$2:$C$50' to 'Sheet1!$A$2:$C$76' to ensure all data is covered.
Press Enter to save the updated formula. Click and drag the fill handle down to apply this corrected range to the rest of your column.
Lock the Table Array with Absolute References
Prevent the lookup range from shifting downwards when copying the formula by using absolute references.
Fix VLOOKUP Errors easily with WPS Spreadsheet
WPS Spreadsheet offers intuitive formula auditing tools and full compatibility with standard Excel functions, making it effortless to trace errors and correct your lookup ranges.
- 1. Open your workbook: Launch WPS Spreadsheet and open the document containing the lookup errors.
- 2. Edit the formula: Double-click the cell returning the #N/A error to enter editing mode.
- 3. Adjust the visual range: Locate the colored border representing your table_array, and drag its corners to expand the selection over your entire dataset.
- 4. Confirm changes: Press the Enter key to recalculate the formula and resolve the reference error immediately.

Frequently Asked Questions
Why does VLOOKUP return #N/A when the text looks exactly the same?
Even if the text appears identical, hidden spaces, trailing spaces, or differences in data types (like numbers formatted as text) will prevent a match. You can use the TRIM function to remove extra spaces or ensure both columns share the exact same data format.
How can I hide the #N/A error in my VLOOKUP results?
You can suppress the #N/A error by wrapping your VLOOKUP formula inside the IFERROR function. For example, using `=IFERROR(VLOOKUP(A2, D:E, 2, FALSE), "Not Found")` will display 'Not Found' or a blank cell instead of an ugly error code.
Does the VLOOKUP table array always need absolute references?
Yes, if you plan to drag or copy the formula to other cells. Without absolute references (the dollar signs, like $A$2:$C$100), the lookup range will dynamically shift downwards as you copy the formula, causing it to miss valid data and return #N/A errors.




