[red]#,### format is not displaying 0

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi

I did write only this code [red]#,###
now when I type positive or negative numbers they will show as expected but when I type
0 nothing appears? and when I type Text, text will be shown but in black color

Why the above code applied to negative numbers? I thought it would apply on positive numbers only. Then why not 0?

Thanks a lot.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi

I did write only this code [red]#,###
now when I type positive or negative numbers they will show as expected but when I type
0 nothing appears? and when I type Text, text will be shown but in black color

Why the above code applied to negative numbers? I thought it would apply on positive numbers only. Then why not 0?
It is not clear what your actual question is; however, if you want 0 to display and be displayed in red, then use this Custom Format Type pattern instead of the one you posted...

[red]#,##0
 
Upvote 0
Are you using that as a number format?

If you are how do you want the numbers formatted?
 
Upvote 0
Thanks all for your reply. I selected a cell and went to custom formatting and entered this code
[red]#,###

Now if I enter 55 or -55 then I see the number a red (so far so good)
when I enter 0 (as a number) then I do not see anything!! why not? why excel does not display 0?
When I type Hello, I see Hello in black

My question, that code I entered why it did apply on -ve number?
I thought I need to do this [red]#,###;[blue]#,###
so the code can applied on -ve number

the first code [red]#,### I thought should be only applied on +ve numbers

Thanks
 
Upvote 0
No I did not actually. I just tried it and it works.
What I was focusing on is that, I do not have the 0 part in the format

positive;negative,zero,text

ok I learnt something now. Thank you all.
 
Upvote 0

Forum statistics

Threads
1,223,996
Messages
6,175,862
Members
452,676
Latest member
woodyp

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