简体   繁体   中英

Round to two decimal places

In the formula bar the data shows up as 69.849999999 and in the cell as 69.85 . I am trying to get that number in the formula bar as 69.85 . I tried Copy and Paste Values and almost everything else that I can think of. Even formatting the cell as a number with only two decimal places. Nothing is working.

Any ideas?

Excel格式问题2010

The following will radically change your data so use it with caution; possibly even on a backup copy until you are sure this is what you want.

If you have all of the numbers formatted the way you want (eg 0.00 ) then go into Excel Options ( Alt + F , T ). Choose Advanced from the list down the left and scroll the right pane down ¾ of the way to the When calculating this workbook section.

Click Set precision as displayed . Acknowledge the warning.

显示精度

Remember to also click OK in the lower right to accept the option change and close Excel Options. All of the numeric values within your workbook will be rounded off to their displayed value of their number format. Note that numbers set to a General should not be affected.

Use at your own risk. I'm not saying this is a bad thing; just that you should be completely aware of the consequences before you commit large amounts of data to this option. See Change formula recalculation, iteration, or precision for more information.

Try:

=ROUND(A1,2)  

then select, Copy, Paste Special, Values.

mrmcg,

=TEXT(A1,"0.00") is my preferred method here.

In hopes to be helpful it is a good idea to understand what you need to change to get the correct result. When you change the formatting (ie number, decimal, general) you are only changing the way the data appears, not the actual data.

You will need to use a formula like round, floor, text to change the actual data.

good luck and I hope that this is helpful!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM