Formula Errors

Display #N/A Errors and Zero Values as Blank Cells in Excel

Huma Ashraf ChHuma Ashraf Ch Dec 2, 2026 868 views

Question details

Hide #N/A errors and zero results so Excel table cells appear blank.

Display #N/A Errors and Zero Values as Blank Cells in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the formula cell

In Excel, select the cell containing the formula you want to change and click the formula bar.

2
Wrap the formula

Replace the formula with =IFERROR(IF(your_formula=0,"",your_formula),""). Replace both instances of your_formula with the original formula.

3
Apply the formula

Press Enter, then drag the cell's fill handle down the column if other rows need the same treatment.

Use IFERROR and IF to hide errors and zero results
All errors are hidden: IFERROR hides all formula errors, not just #N/A. For the example lookup, use =IFERROR(IF(VLOOKUP(G7,FinalWorkshops,4)=0,"",VLOOKUP(G7,FinalWorkshops,4)),"").
WPS Spreadsheets

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. 1. Open the spreadsheet: Launch WPS Office, select Open, and choose your spreadsheet file.
  2. 2. Edit the formula: In WPS Spreadsheets, select the result cell and click the formula bar.
  3. 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. 4. Apply and save: Press Enter, drag the fill handle to other rows if needed, and select Save.
Display lookup errors and zero results as blanksOpen and edit Microsoft Excel XLS and XLSX filesUse familiar spreadsheet formulas and controls
microsoft office alternative - wps office

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.