Forum

Notifications
Clear all

Formating instead of rounding 12,345.67 formatted as 12,300

5 Posts
2 Users
0 Reactions
201 Views
(@henric)
Posts: 3
Active Member
Topic starter
 

I have several situations where I would like format a number instead of rounding it with ROUND(...). But I cannot find the correct solution. If I have a four or a five digit number, I would like to round it to whole hundred.

For example 12,345.67 should be 12,300 and 1,234.56 should be 1.200. Is this possible?

Hope someone out there can help me.

 
Posted : 23/07/2017 7:38 am
(@catalinb)
Posts: 1937
Member Admin
 

Hi Henric,

A simple ROUND function will work.

Just make sure you use positive values in the num_digits argument for decimal places, and negative numbers for integers, tens, hundreds.

=ROUND(A1,-2) will do what you need.

ROUNDUP or ROUNDDOWN will also work, depending on what you want.

 
Posted : 23/07/2017 9:26 am
(@henric)
Posts: 3
Active Member
Topic starter
 

Catalin Bombea said
Hi Henric,

A simple ROUND function will work.

Just make sure you use positive values in the num_digits argument for decimal places, and negative numbers for integers, tens, hundreds.

=ROUND(A1,-2) will do what you need.

ROUNDUP or ROUNDDOWN will also work, depending on what you want.  

Hi Catalin

I know the ROUND-function which I use a lot, but in my particular case I would prefer to format my numbers instead of rounding them.

 
Posted : 24/07/2017 3:03 am
(@catalinb)
Posts: 1937
Member Admin
 

Not possible to hundreds level, only to thousands or millions:

#,###,"000"

or

#,###,,"000000"

 
Posted : 24/07/2017 4:21 am
(@henric)
Posts: 3
Active Member
Topic starter
 

Catalin Bombea said
Not possible to hundreds level, only to thousands or millions:

#,###,"000"

or

#,###,,"000000"  

Hi Catalin

It's what I also figured out. Thank you very much for your help and for the tip with formating for thousands and millions 🙂

Regards
Henric

 
Posted : 25/07/2017 7:40 am
Share: