简体   繁体   中英

Formatting a number with decimal places

I am trying to format a price that looks like this "193.250". I want to format it to "1.93250".

I've tried playing around with the format cells, but i can't seem to figure it out.

I don't think there's a custom format that will do that, but you could put this formula in a separate column

=A1/(10^(SEARCH(".",A1,1) - 2))

Of course, that will make 100.5 look like it has a greater value than 1000.5. The other option would just be to add a formula to divide by 100 and use the "Increase/Decrease Decimal" buttons to show the desired number of digits.

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