custom formatting using code # for text

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I formatted a cell using custom format and type code # so I typed 100 and got 100, typed -100 and got -100, typed 0, and got empty cell, typed Hello, and got Hello.
I understand why 100, and -100 but what I do not get why 0 got hidden and why Hello is showing.

I know it is

Positive, Negative, Zero, Text

So when I have code #, I expect excel to show 0 but not Hello,

So why I have a code #, does that mean it is appled to positive and negative and text but not zero?

Thank you.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi,

Custom formatting a cell using the number symbol ( # ), will show only positive and negative numbers (entered or otherwise result from formula). It does Not affect Text entries or results.
If you use zero ( 0 ) as custom format, it'll show all, but I really don't see the point, as you can just leave it as "General" or "Number"
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,891
Members
449,194
Latest member
JayEggleton

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