ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formatting 100's and 1000's (https://www.excelbanter.com/excel-discussion-misc-queries/15824-formatting-100s-1000s.html)

Chris Short

Formatting 100's and 1000's
 
Is there a format for displaying numbers rounded to the nearest 10, and
numbers in the 1000s (upto 9999) to the nearest 100?

For example display 874 as 870 and display 8765 as 8 800.

I know about commas and "000" for thousands and millions (eg using ###,
"000" to format 123456 as 123 000).

But I've been unable to discover any information for doing something similar
to tens and hundreds.

cheers,
Christopher



Roger Govier

Hi Chris

One way would be
=IF(A1<1000,FLOOR(A1,10),FLOOR(A1,100))

--
Regards
Roger Govier
"Chris Short" wrote in message
...
Is there a format for displaying numbers rounded to the nearest 10, and
numbers in the 1000s (upto 9999) to the nearest 100?

For example display 874 as 870 and display 8765 as 8 800.

I know about commas and "000" for thousands and millions (eg using ###,
"000" to format 123456 as 123 000).

But I've been unable to discover any information for doing something
similar to tens and hundreds.

cheers,
Christopher




Chris Short

thanks Greg, but I was after a format, not a function to redo the data.

cheers,
Christopher




All times are GMT +1. The time now is 09:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com