The information in this article applies to:
SUMMARYIn 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 INFORMATIONIn 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: 0you would get #DIV/0! returned to cell A1. You can change the formula in cell A1 to hide the error value to the following:
With the example values given above, this formula returns the empty string
("").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: Q87299 XL: How to Suppress Error Values on a WorksheetThere 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:
REFERENCESFor more information about Conditional Number Formats, click the Index tab in Microsoft Excel 97 Help, type the following text formatting cells, conditional formatsand then double-click the selected text to go to the "Apply conditional formats to cells " topic. Additional query words:
Keywords : xlformat xlformula |
Last Reviewed: October 11, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |