using 0 instead of # in custom number formatting

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I just watched a video on youtube about number formatting. I took screen shot of all the codes he was using, please see below. He only used 0 instead of #. I thought that is good idea because with 0 you can represent both the number and the zeros while with # you would only represent number not zeros. What do you think. Thank you so much.


https://drive.google.com/file/d/1p_aa-Yg0CYQ75DcstmEWSiT9agqjL0lc/view?usp=sharing
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
It depends what you are trying to do. # can display zeros but basically it only displays significant digits.

So if your cell contained 12350 and was formatted as # it would still display 12350 (zero being displayed).
However if it was formatted as #.0 it would display as 12350.0, but #.# would display as 12345. because the 0 after the decimal point is not significant to the number (it doesn't change its value)
 
Upvote 0
Thank you for your reply. #.# should display 0 because it is significant here.
So 123450 would be 123450.

Am I right? Thanks again.
 
Upvote 0
Can you please tell me for the code 0,0.00 when excel will display 1 as 01.00
Why the 0 before 1? Thank you so much
 
Upvote 0
Because it's forcing a 0. With the 0 in the format.
That's the difference, as I said it depends on what you want.

If you don't want it, format it like this: #,#0.00
 
Last edited:
Upvote 0
Thanks for your reply. I wanted to know why for example for that code 0,0.00 if i enter 20 then I will get 20.00 (no zero before 2) and if type 300 then I will get 300.00 (no zero infront of 3) but when I type 1 then I will get 01.00
 
Upvote 0
Because there is a leading 0 before the single digit number.

In a simpler format, if you format the cell as 00 and type 1 you will get 01, but if you enter 11 you will get 11 because there is only 2 digits in the format. It is basically filling the empty spots with 0 in this format.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top