Custom Number Format - 0 not displaying

SawdustCollector

New Member
Joined
Dec 23, 2014
Messages
12
I have this number format to display gigabyte units after numerical values.

#" GB"

When I enter a value of 0 in a cell with the formating, the zero does not diplay. Only the " GB" displays.

I would like "0 GB" to display. What is wrong with my number format?

Thanks in advance!
Don
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I have this number format to display gigabyte units after numerical values.

#" GB"

When I enter a value of 0 in a cell with the formating, the zero does not diplay. Only the " GB" displays.

I would like "0 GB" to display. What is wrong with my number format?

Thanks in advance!
Don

Give this a try:

#0" GB"

Or even just this:

0" GB"
 
Last edited:
Upvote 0
I have this number format to display gigabyte units after numerical values.

#" GB"

When I enter a value of 0 in a cell with the formating, the zero does not diplay. Only the " GB" displays.

I would like "0 GB" to display. What is wrong with my number format?
The # sign does not display leading or trailing zeroes... I guess a 0 by itself is considered a leading zero. Try using this custom type pattern instead...

0" GB"

The 0 forces a zero in that spot when there is no digit to fill it.
 
Upvote 0

Forum statistics

Threads
1,215,364
Messages
6,124,510
Members
449,166
Latest member
hokjock

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