XL: How to Suppress Error Values on a Worksheet

Article translations Article translations
Article ID: 87299 - View products that this article applies to.
This article was previously published under Q87299
Expand all | Collapse all

On This Page

SUMMARY

In Microsoft Excel, you can prevent error values (such as #N/A, #VALUE!, #REF!, and #NUM!) from being displayed.

MORE INFORMATION

To suppress error values, use either of the following methods.

Method 1: Use an IF Statement

Use the following IF statement
=IF(ISERROR(formula),"",formula)
where formula is the formula for which you want to suppress the error value. If formula returns an error, this statement returns "" (a null character); otherwise it returns the result of formula.

NOTE: There is no space between the quotation marks.

Method 2: Hide the Error Value with Formatting

Use a combination of colors and custom formats to "hide" the error value. To make error values invisible, use the background color for everything in the selected cells except numbers. To do this, follow these steps:
  1. Select the cells you want to format.
  2. On the Format menu, click Cells, and then click the Font tab.
  3. In the Color list, click the color that matches your background color.
  4. Click the Number tab. Create a custom number format that includes a color. For example, create a custom format similar to the following:
    [BLACK]General
    [BLACK]$#,##0.00;[RED]$#,##0.00
  5. Click OK.

REFERENCES

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
288972 XL2002: How to Suppress the Printing of Errors in Workbook Cells

Properties

Article ID: 87299 - Last Review: September 19, 2011 - Revision: 3.0
APPLIES TO
  • Microsoft Excel 2000 Standard Edition
  • Microsoft Excel 2002 Standard Edition
  • Microsoft Excel 97 Standard Edition
  • Microsoft Excel 98 for Macintosh
Keywords: 
kberrmsg kbhowto KB87299

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com