Function Problems

Fix VLOOKUP Returning #N/A or Zero in WPS Spreadsheets

Adam DavisAdam Davis Dec 2, 2026 868 views

Question details

Identify why a VLOOKUP formula returns #N/A or zero instead of the expected value.

Fix VLOOKUP Returning #N/A or Zero in WPS Spreadsheets
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
A lookup formula wrapped in IFERROR returns zeros for some records even though the source data appears correct.
Observed behavior
Removing IFERROR reveals #N/A for affected records.
Before you start

Select an affected formula and inspect it in the formula bar. Identify the lookup cell, the first column of the lookup range, the return column, and the IFERROR fallback value.

Solution 1Recommended

Clean the lookup values and verify the VLOOKUP range

Use this method when visually similar values do not match or IFERROR hides a lookup error.

VLOOKUP with FALSE requires an exact match, but it is not case-sensitive. Extra spaces, hidden characters, spelling differences, and numbers stored as text can prevent a match.

1
Expose the error

Select an affected cell and temporarily remove the outer IFERROR wrapper in the formula bar. If VLOOKUP returns #N/A, check the lookup value and source keys for a mismatch.

2
Compare the source values

Click the lookup cell and its expected match in the source table. Check their spelling, trailing spaces, and whether numbers are stored as text. For example, JANUARY and JANUARY followed by a space are different values.

3
Create a cleaned key

In a helper column to the left of the source table, enter =TRIM(CLEAN(SUBSTITUTE(D2,CHAR(160)," "))) if D2 contains the original key. Fill the formula down alongside the source records. This removes common hidden characters and replaces nonbreaking spaces.

4
Update the lookup formula

If A2 is the lookup value, the cleaned keys are in C2:C100, and the return values are in E2:E100, enter =VLOOKUP(TRIM(CLEAN(SUBSTITUTE(A2,CHAR(160)," "))),$C$2:$E$100,3,FALSE). Adjust the range and column index to match your table.

5
Check the result and fallback

Compare the result with the source return cell. If a valid match returns zero, check whether that source cell is blank or contains zero. Once the lookup works, use IFERROR around the formula with a clear fallback such as "Not found" instead of 0.

Clean the lookup values and verify the VLOOKUP range
Check data types: TRIM and CLEAN address text characters, not every number-versus-text mismatch. If the keys are numeric, make sure both the lookup value and source keys use the same data type.
Work with VLOOKUP in WPS Spreadsheets

Troubleshoot VLOOKUP formulas in WPS Spreadsheets

Use WPS Spreadsheets to inspect lookup formulas, clean source keys, and test exact matches in your workbook.

  1. 1. Open the workbook: Open WPS Spreadsheets and choose Open to select your workbook.
  2. 2. Inspect the formula: Select a cell with an unexpected result and review its VLOOKUP and IFERROR arguments in the formula bar.
  3. 3. Clean the lookup keys: Add a helper column beside the source data and enter a TRIM and CLEAN formula for each lookup key.
  4. 4. Test an exact match: Update the VLOOKUP range to begin with the cleaned helper column, set the final argument to FALSE, and compare the result with the source cell.
Inspect and edit VLOOKUP and IFERROR formulasClean lookup keys with TRIM, CLEAN, and SUBSTITUTEOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does IFERROR show zero instead of #N/A?

The formula may use 0 as its IFERROR fallback. Select the cell and inspect the formula bar; temporarily remove IFERROR to see the underlying error.

Does VLOOKUP distinguish uppercase from lowercase?

No. VLOOKUP is not case-sensitive. Check for spelling differences, extra spaces, or hidden characters instead.

Why does VLOOKUP return zero even when it finds a match?

The matched return cell may contain zero or be blank. Check that cell in the source table and confirm that the column index points to the intended return column.

How do I make VLOOKUP use an exact match?

Set the fourth argument to FALSE, as in =VLOOKUP(A2,$C$2:$E$100,3,FALSE). The lookup key must be in the first column of the selected range.