Excel: Preventing Zero Values from Being Displayed

Last reviewed: November 30, 1994
Article ID: Q23813
The information in this article applies to:
  • Microsoft Excel for the Macintosh, versions 1.x, 2.2, 3.0, 4.0, 5.0
  • Microsoft Excel for Windows, versions 2.x, 3.0, 4.0, 4.0a, 5.0

SUMMARY

There are two methods that can be used to prevent zero values from being displayed on a Microsoft Excel worksheet. In Excel versions 2.2, and later, either Method 1 or Method 2 will work. If you are using a version of Microsoft Excel before 2.2, you must use Method 2.

Method 1

  1. From the Options menu, choose Display.

  2. Cancel Zero Values. Choose the OK button.

Method 2

  1. Select the cells in which you do not want zero values to display.

  2. From the Format menu, choose Number.

  3. Edit the number format so that the zero segment is blank. The zero segment in the number format is the segment between the second and third semicolons. (The third semicolon is not necessary.)

    For example, if you are using the number format "#,##0.00;(#,##0.00)", modify it so that it reads as follows:

          #,##0.00;(#,##0.00);
    

    Note that there is nothing after the second semicolon. The following format is equivalent:

          #,##0.00;(#,##0.00);;General
    

REFERENCES

"Microsoft Excel User's Guide 1," version 4.0, pages 218-227

"Microsoft Excel User's Guide," version 3.0, pages 178-186

"Microsoft Excel Reference," version 2.2, pages 507-512

"Microsoft Excel User's Guide," version 1.5, pages 127-131


KBCategory: kbusage
KBSubcategory:

Additional words: 1.0 1.00 1.03 1.04 1.06 1.5 1.50 2.2 2.20
3.0 3.00 4.0 4.00 5.00


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 30, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.