Fix VLOOKUP #N/A in WPS Spreadsheets When Lookup Value Is Text
Question details
The user needs to auto-populate cells with lookup formulas and prevent VLOOKUP #N/A errors caused by a lookup value stored as text instead of a number.

- Product
- WPS Spreadsheets
- Device & OS
- not provided
- Scenario
- The user wants lookup formulas to return correct results and display a blank when no match exists.
- Observed behavior
- VLOOKUP returns #N/A or incorrect results because the lookup value in B4 is text, while the matching values on the Data sheet are numbers.
Open the workbook in WPS Spreadsheets and identify the lookup value cell, such as B4, and the lookup range on the Data sheet. Check whether B4 is stored as text or as a number by selecting the cell and reviewing the Number Format drop-down on the Home tab.
Convert the Lookup Value from Text to Number and Reapply VLOOKUP
Use this solution when B4 or a similar lookup cell is formatted as text, causing VLOOKUP to return #N/A even though the value exists in the data.
VLOOKUP treats text and numbers as different values. If the lookup value is stored as text while the first column of the lookup range contains real numbers, the formula cannot match them and returns #N/A.
In WPS Spreadsheets, click cell B4 or the cell that contains the search value you want to use in the formula.
Go to the Home tab, click the Number Format drop-down, and choose Number or General to convert the cell from text to a numeric format.
Press F2 to edit the cell, then press Enter so WPS Spreadsheets re-evaluates the value as a number. You can also type the value again.
Click the formula cell and confirm the formula is =VLOOKUP(B4,Data!$A:$D,2,FALSE), with B4 now matching the data type of the first column in Data!$A:$D.

Wrap the Lookup Formula with IFERROR to Display a Blank Cell
Use this solution when you want the lookup cell to appear blank instead of showing #N/A if no match exists.
Use WPS Spreadsheets to Fix VLOOKUP #N/A by Matching Text and Number Data Types
WPS Spreadsheets can directly fix the VLOOKUP #N/A issue by converting the lookup value to the correct data type and applying IFERROR to return a clean blank when needed. It offers a familiar spreadsheet workflow with Excel-compatible formulas and formatting.
- 1. Open the workbook in WPS Spreadsheets: Download and install WPS Office, then open the Excel workbook that contains the VLOOKUP formula.
- 2. Check the lookup value cell: Select cell B4, open the Home tab, and verify whether the Number Format drop-down shows Text or a number format.
- 3. Convert the text value to a number: Change the cell format to Number or General, press F2, and then press Enter to re-evaluate the value as a number.
- 4. Apply the lookup formula: In the target cell, enter =VLOOKUP(B4,Data!$A:$D,2,FALSE), or wrap it with =IFERROR(VLOOKUP(B4,Data!$A:$D,2,FALSE),"") to display a blank when no match exists.
- 5. Verify the result: Check that the formula returns the correct match or a blank instead of #N/A.

Frequently Asked Questions
Why does VLOOKUP return #N/A even when the value is in the lookup range?
It usually means the lookup value and the values in the first column of the lookup range have different data types. For example, if B4 is stored as text but the Data sheet values are numbers, VLOOKUP cannot match them. Convert B4 to Number or General format and re-enter the value.
How do I check if a cell is stored as text or as a number in WPS Spreadsheets?
Select the cell and look at the Number Format drop-down on the Home tab. You can also use =ISTEXT(B4) or =ISNUMBER(B4) in another cell. Usually, text values align left and numbers align right by default.
How can I show a blank cell instead of #N/A?
Wrap the lookup formula with IFERROR. For example: =IFERROR(VLOOKUP(B4,Data!$A:$D,2,FALSE),""). This returns an empty text string when VLOOKUP would otherwise return an error.
Should I use IFERROR or IFNA for this issue?
If you only want to hide #N/A errors and keep other formula errors visible, use IFNA: =IFNA(VLOOKUP(B4,Data!$A:$D,2,FALSE),""). Use IFERROR if you want to hide all types of errors.
Does the same data type rule apply to XLOOKUP or INDEX/MATCH?
Yes. Any lookup formula that compares values can fail or return incorrect results when the lookup value and the lookup range contain mismatched data types, such as text versus number.




