Article ID: 154874 - Last Review: October 21, 2000 - Revision: 1.0 XL97: How to Create a Conditional Format to Hide ErrorsThis article was previously published under Q154874 SUMMARY
In Microsoft Excel, you can create conditional formatting on a cell, or a
range of cells, so that error values are not displayed in the cell(s).
MORE INFORMATION
In versions of Microsoft Excel earlier than Excel 97, you could not create
a custom number format to hide error values returned to the cell by the
cell formula. For example, if you enter the following in your worksheet:
A1: =B1/C1 B1: 5 C1: 0
you would get #DIV/0! returned to cell A1. You can change the formula in
cell A1 to hide the error value to the following:
Note, there are other techniques for hiding error values that you can use in versions of Microsoft Excel earlier than Microsoft Excel 97. For additional information, please see the following article in the Microsoft Knowledge Base: 87299
(http://support.microsoft.com/kb/87299/EN-US/
)
XL: How to Suppress Error Values on a Worksheet
There is a new feature in Microsoft Excel 97 called Conditional Formatting
that allows you to use the simpler of the two formulas in cell A1, and
still prevent the error value from showing in cell A1.The following example steps you through the use of Conditional Formatting to hide error values returned by formulas in cells:
REFERENCES
For more information about Conditional Number Formats, click the Index tab
in Microsoft Excel 97 Help, type the following text
formatting cells, conditional formats
and then double-click the selected text to go to the "Apply conditional
formats to cells " topic.
| Article Translations
|

Back to the top
