You can frequently prevent floating point rounding errors from affecting your work by setting the Precision as displayed option before you apply a number format to your data. This option forces the value of each number in the worksheet to be at the precision that is displayed on the worksheet.
Note Using the Precision as displayed option can have cumulative calculation effects that can make your data increasingly inaccurate over time. Use this option only if you are certain that the displayed precision will maintain the accuracy of your data.
- Click the Microsoft Office Button , and then click Excel Options.
- Click Advanced, and then under When calculating this workbook, select the Set precision as displayed check box, and then click OK.
- Click OK.
- In the worksheet, select the cells that you want to format.
- On the Home tab, click the Dialog Box Launcher next to Number.
- In the Category box, click Number.
- In the Decimal places box, enter the number of decimal places that you want to display.
Tip To minimize any effects of floating point arithmetic storage inaccuracy, you can also use the ROUND function to round numbers to the number of decimal places that is required by your calculation.