Calculate Precision As Displayed Versus Format Number

Last reviewed: June 9, 1997
Article ID: Q25653
2.x 3.x 4.x 5.00 5.00c 7.00 WINDOWS kbusage

The information in this article applies to:

  • Microsoft Excel for Windows, versions 2.x, 3.x, 4.x, 5.0
  • Microsoft Excel for Windows NT, version 5.0
  • Microsoft Excel for Windows 95, version 7.0

SUMMARY

In Microsoft Excel, numbers are rounded based on their stored values rather than on their displayed values.

When you format numbers by choosing the Cells command from the Format menu (the Numbers command in versions earlier than 5.0), you alter the way the numbers are displayed; however, when you calculate numbers, the calculations are performed with the stored versions of these numbers. When you calculate formatted values, you may receive unexpected results because the displayed versions of the numbers may be slightly different than their stored values.

WORKAROUND

To calculate numbers based on their displayed values, select the Precision As Displayed option. This option truncates numbers in cells so that the stored number is the same as the displayed number.

To select the Precision As Displayed option, follow the appropriate procedure below.

Microsoft Excel versions 5.0 and later

  1. From the Tools menu, choose Options.

  2. Select the Calculation tab.

  3. On the Calculation tab, under Workbook Options, select the Precision As Displayed check box.

Microsoft Excel versions 4.x and earlier

  1. From the Options menu, choose Calculation.

  2. In the Calculation dialog box, select the Precision As Displayed check box.

MORE INFORMATION

The Precision As Displayed command typically is used to prevent rounding errors when working with currency.


KBCategory: kbusage
KBSubcategory:

Additional reference words: 7.00 2.0 2.00 2.01 2.1 2.10 2.2 2.20 2.21 3.0
3.00 4.0 4.00 5.00
Keywords : kbualink97


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: June 9, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.