How to Use Excel IF Formula to Return a Blank Cell When Lookup is Empty
Question details
The user needs to configure an Excel formula to output a blank cell when a referenced lookup formula returns an empty string or no result.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Cleaning up spreadsheet data by hiding #N/A errors or unwanted values resulting from unmatched lookup formulas.
- Observed behavior
- Without proper handling, lookup formulas may return #N/A errors or approximate but incorrect matches when a value is not found, rather than simply leaving the cell blank.
Identify the exact cell references containing your lookup values and ensure your reference table data is properly structured before applying the nested IF statements.
Use IFNA with VLOOKUP for an Exact Match
Wrapping an exact-match VLOOKUP formula in an IFNA function prevents #N/A errors from appearing when a lookup value is missing, gracefully outputting a blank cell instead.
VLOOKUP with the FALSE argument is generally safer than the traditional LOOKUP function because it strictly performs an exact match and does not require the source data to be sorted alphabetically or numerically.
Click on the cell where you want the lookup result to appear in your spreadsheet.
Type =IFNA(VLOOKUP(A2, $C$2:$D$3, 2, FALSE), "") into the formula bar. Replace A2 with your search value, and $C$2:$D$3 with your actual lookup table range.
Press Enter. The cell will now return the correct value if a match is found, or remain completely blank if the lookup value is missing.
Use the IF Function to Evaluate Existing Empty Cells
If you already have a lookup formula generating an empty string in one column, you can use a simple IF statement in another column to perform an action or return a blank based on that result.
Use WPS Spreadsheet for Clean Lookup Formulas
WPS Office Spreadsheet provides full support for advanced data functions, allowing you to easily nest IF, IFNA, and VLOOKUP formulas to handle missing data and errors gracefully.
- 1. Open WPS Spreadsheet: Launch WPS Office and open a new or existing spreadsheet document containing your data tables.
- 2. Insert the VLOOKUP Formula: Select your target cell and begin typing =IFNA(VLOOKUP( utilizing the built-in formula auto-complete suggestions for guidance.
- 3. Define the Blank Return: Add , "") to the end of your formula structure to guarantee that missing data returns a clean blank cell instead of displaying an error code.

Frequently Asked Questions
Why does my VLOOKUP return a 0 instead of blank when the source cell is empty?
When VLOOKUP finds an exact match but the corresponding return cell in the source data is empty, Excel defaults to evaluating it as a 0. To fix this, you can append &"" to the end of your VLOOKUP formula, which forces it to return text, converting the zero to an empty string.
What is the core difference between LOOKUP and VLOOKUP?
VLOOKUP searches vertically in a specified column and allows you to enforce exact matches by setting the last argument to FALSE. The LOOKUP function typically performs approximate matches and fundamentally requires the source data to be sorted in ascending order to work correctly.
Can I use IFERROR instead of IFNA for my formulas?
Yes, but use caution. IFERROR catches all types of errors (including #DIV/0!, #VALUE!, and #REF!), while IFNA specifically targets only the #N/A error. For lookups, IFNA is usually preferred because it hides missing data but still alerts you if there is a fundamental syntax error in your spreadsheet.




