Display #N/A Errors and Zero Values as Blank Cells in Excel
Question details
Hide #N/A errors and zero results so Excel table cells appear blank.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A table formula or VLOOKUP returns an error or zero, but the user wants to display a blank instead.
- Observed behavior
- Cells should appear blank when the formula returns #N/A or zero, while displaying other results.
Identify the formula in the affected cell and check its lookup references or named ranges. Use the argument separator required by your regional settings: commas or semicolons.
Use IFERROR and IF to hide errors and zero results
Use this approach when you want to display a blank for zero or any formula error.
In Excel, select the cell containing the formula you want to change and click the formula bar.
Replace the formula with =IFERROR(IF(your_formula=0,"",your_formula),""). Replace both instances of your_formula with the original formula.
Press Enter, then drag the cell's fill handle down the column if other rows need the same treatment.

Use IFNA and IF to hide only #N/A and zero results
Use this option when you want other errors to remain visible for troubleshooting.
Hide lookup errors and zero results in WPS Spreadsheets
Use IFERROR and IF in WPS Spreadsheets to make error and zero results appear blank in your spreadsheet.
- 1. Open the spreadsheet: Launch WPS Office, select Open, and choose your spreadsheet file.
- 2. Edit the formula: In WPS Spreadsheets, select the result cell and click the formula bar.
- 3. Enter the blank-result formula: Enter =IFERROR(IF(your_formula=0,"",your_formula),"") and replace both instances of your_formula with the original formula.
- 4. Apply and save: Press Enter, drag the fill handle to other rows if needed, and select Save.

Frequently Asked Questions
How do I hide only #N/A errors and keep other errors visible?
Use IFNA instead of IFERROR. For example, enter =IFNA(IF(your_formula=0,"",your_formula),"") in the formula bar, replacing both instances of your_formula.
Is a cell containing an empty-string formula actually empty?
No. The cell looks blank, but it still contains a formula that returns an empty string. This can affect functions that test whether a cell is truly empty.
Why does Excel reject the formula when I use commas?
Your regional settings may require semicolons as argument separators. Replace the commas used as separators with semicolons consistently; do not mix the two.
Can I use this method with VLOOKUP?
Yes. Wrap the VLOOKUP in IF and IFERROR, such as =IFERROR(IF(VLOOKUP(G7,FinalWorkshops,4)=0,"",VLOOKUP(G7,FinalWorkshops,4)),""). Adjust the cell, range, and column index to match your worksheet.




