How to Fix VLOOKUP Returning #N/A After Adding Rows in Spreadsheets
Question details
The user is encountering an #N/A error with their VLOOKUP formula after inserting new rows into the source spreadsheet.
- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Expanding an existing dataset by adding new rows and attempting to retrieve data using a previously functioning VLOOKUP formula.
- Observed behavior
- The VLOOKUP formula returns an #N/A error because it fails to find the lookup value, typically due to the formula range not encompassing the newly added data or formatting mismatches.
Ensure you have editing permissions for the spreadsheet and verify which specific cells or ranges contain the newly added data that the formula needs to search.
Update the VLOOKUP Table Array Range
The most common reason for this error is that the VLOOKUP formula's static range was not expanded to include the newly added rows.
When standard cell references are used in a formula, adding rows below the defined range does not automatically update the formula. You must manually adjust the table array to encompass the new data.
Click on the cell displaying the #N/A error to make it active.
Click into the formula bar at the top of the spreadsheet to edit the VLOOKUP function.
Identify the second argument of your VLOOKUP formula (the table_array). Manually change the ending row number to include your new rows (e.g., change $A$1:$D$50 to $A$1:$D$100).
Press Enter on your keyboard to apply the updated formula. Drag the fill handle down to apply the corrected range to any other affected cells.
Check Data Types and Remove Extra Spaces
If the range is correct but the #N/A error persists, the lookup value might not exactly match the source table due to hidden spaces or different data types.
Prevent Formula Errors Automatically with WPS Spreadsheet
WPS Spreadsheet offers dynamic tables and robust formula auditing tools to help you prevent and fix VLOOKUP #N/A errors effortlessly. Best of all, it seamlessly integrates with your existing Excel files.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your VLOOKUP formula.
- 2. Convert data to a Table: Highlight your source data range and press Ctrl+T (or go to Insert > Table) to convert it into a dynamic table.
- 3. Update the VLOOKUP formula: Rewrite your VLOOKUP formula to reference the new Table name instead of using static cell references.
- 4. Add rows effortlessly: Whenever you add new rows to the table, your VLOOKUP formulas will instantly recognize the new data without returning #N/A.

Frequently Asked Questions
Why does VLOOKUP return #N/A even when there is a visible exact match?
This usually happens due to unprintable characters, hidden trailing/leading spaces, or data type mismatches (such as a number stored as text in one cell and as a regular number in the other). Using the TRIM() or VALUE() functions can help clean your data and resolve this.
How can I prevent the #N/A error when adding new rows in the future?
The most reliable way to prevent this error is by converting your source data into a dynamic Table. Alternatively, you can use whole-column references in your VLOOKUP formula (e.g., A:D instead of A1:D50), which automatically includes any new rows added at the bottom.
Can I hide the #N/A error and display a blank cell instead?
Yes, you can wrap your VLOOKUP formula in an IFERROR function. For example, using =IFERROR(VLOOKUP(...), "") will instruct the spreadsheet to display a blank cell instead of the #N/A error when a match cannot be found.




