The information in this article applies to:
SUMMARYMicrosoft Excel calculates a number based on its stored value not its displayed value. When a formula or worksheet function performs a calculation, Microsoft Excel uses the values in cells that are referenced by the formula. Note that the displayed value may be different because of number formatting. MORE INFORMATION
When you format numbers by clicking Cells on the Format menu, you alter the
way Excel displays the numbers; however, when you calculate numbers, Excel
performs the calculations by using the stored values. When you calculate
formatted values, you may receive unexpected results because the displayed
numbers may be slightly different from the stored values.
Rounding Values to the Same Precision as Number FormattingYou can use the ROUND worksheet function to round values to a specific precision.Example: For this example, type the following into a new worksheet:
The value in cell $A$3 is 10.005. The value in cell $A$3 displays $10.00 if you format the value as currency. To round the precision correctly, replace the formula in cell $A$3 with the following:
When you do this, the worksheet function takes the result of the expression in the first argument and rounds it to the hundredth's place (two digits to the right of the decimal. Rounding All Values in a Worksheet by Using Precision As DisplayedIf you want the calculations to be based on the displayed values, change the precision of calculations so that they use the displayed values instead of the stored values. To do this, follow these steps:
REFERENCESFor more information about calculation precision, click Microsoft Excel Help on the Help menu, type precision calculation in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Keywords : kbdta xlformat |
Last Reviewed: July 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |