logo
search
Function Problems

Fix VLOOKUP Returning #N/A Error When Copied to Next Row in Excel & WPS

Maira MehtabMaira Mehtab Sep 28, 2026 870 views

Question details

The user's VLOOKUP formula works for the first few rows but returns an #N/A or value error when dragged or copied down to subsequent rows.

Product
Excel / WPS Spreadsheet
Device & OS
not provided
Scenario
Copying a VLOOKUP formula down a column to populate multiple rows of data.
Observed behavior
The formula successfully retrieves data for the initial 13 rows but unexpectedly outputs an #N/A error for the 14th row and beyond.
Before you start

Before modifying your formula, check if the lookup value actually exists in the source data range, as an #N/A error often simply means the exact match could not be found.

Solution 1Recommended

Lock the Table Array Range Using Absolute References

When copying formulas down, relative references shift. Locking the lookup range prevents the table array from moving down.

By default, spreadsheet formulas use relative references. If your formula is =VLOOKUP(A2, E2:F100, 2, FALSE) and you copy it down one row, it becomes =VLOOKUP(A3, E3:F101, 2, FALSE). Notice how the search range shifted down to E3:F101. This causes the formula to miss data at the top of your list, resulting in #N/A errors for subsequent rows.

1
Select the Working Formula

Click on the first cell containing the VLOOKUP formula that works correctly.

2
Highlight the Table Array

In the formula bar at the top, highlight the table_array part of your formula (for example, E2:F100).

3
Apply Absolute References

Press the F4 key on your keyboard. This will add dollar signs to the range, changing it to $E$2:$F$100. The dollar signs lock the rows and columns so they will not shift.

4
Copy the Formula Down

Press Enter to save the formula. Click the small square at the bottom-right corner of the cell (the fill handle) and drag it down to apply the locked formula to the rest of the rows.

Tip: Always remember to lock your table array range with F4 before dragging VLOOKUP formulas across or down a sheet.
Smart Formula Assistance

Easily Troubleshoot Formulas with WPS Spreadsheet

WPS Office provides powerful built-in tools like error checking and formula evaluation to help you quickly identify and fix #N/A errors in your VLOOKUP functions.

  1. 1. Open Your Workbook: Launch WPS Spreadsheet and open the file containing the VLOOKUP errors.
  2. 2. Select the Error Cell: Click on the cell displaying the #N/A error to select it.
  3. 3. Run Error Checking: Navigate to the 'Formulas' tab and click on 'Error Checking' to see a detailed explanation of why the value isn't resolving.
  4. 4. Evaluate the Formula: Click the 'Evaluate Formula' tool in the same tab to step through the calculation one piece at a time and pinpoint exactly where the reference fails.
Seamlessly compatible with Microsoft Excel formulas and .xlsx formats.Built-in error checking highlights formula inconsistencies automatically.Free and lightweight alternative for complex data analysis.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my VLOOKUP return #N/A even when the value is clearly there?

This usually happens due to formatting differences, such as one cell being formatted as text and the other as a number. It can also be caused by invisible leading or trailing spaces in the cells, preventing an exact match.

How do I hide the #N/A error in my VLOOKUP results?

You can wrap your VLOOKUP formula in the IFERROR function to display a blank cell or a custom message instead of the error. For example: =IFERROR(VLOOKUP(A2, $B$2:$C$10, 2, FALSE), "Not Found").

What is the difference between TRUE and FALSE in the VLOOKUP range_lookup argument?

FALSE requires an exact match for your lookup value, which is recommended in most cases. TRUE looks for an approximate match and requires your source data to be sorted in ascending order; otherwise, it may return incorrect results.