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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
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,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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