Excel: How to Keep Certain Values from Being DisplayedLast reviewed: October 27, 1995Article ID: Q25903 |
The information in this article applies to:
SUMMARYIn Microsoft Excel for the Macintosh, if you do not want certain values to be displayed or printed, do the following:
MORE INFORMATIONThe following table shows the custom formats you can use to keep certain values from being displayed.
To hide this Use this format ------------------------------------------------------------ Positive numbers ;-General;General;General Negative numbers General;;General;General Zero values General;-General;;General Text values General;-General;General; All values ;;; Error values See "Example 3" later in this article.NOTE: Variations of these formats may also be used instead of General.
Example 1To hide numbers only, do the following:
Example 2To hide ALL cell entries, do the following:
Example 3To hide an error value, use the ISERROR() function to trap the error value, and display a text value instead, as in the following example:
A1: 5 A2: 0 A3: =IF(ISERROR(A1/A2),"error",A1/A2)When you use the ";;;" number format in cell A3, the result of the IF() function (the text string "error") will be hidden in cell A3. For an example of how to do this with a macro, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q138080 TITLE : XL: Macro to Suppress an Error Value Returned by a Formula |
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |