excel accept #,#5## but not #,#

lezawang

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

I am just trying to learn how to use custom formatting. So I wanted to add a format like #,#5 ### and excel accepted it no problem. Then I tried to add #,# but excel did not accept it; instead excel entered #,###. Any idea why?


Thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
At a glance, custom number formats look like interpretable expressions, but they are not; Excel recognizes certain patterns, and that's it.
 
Upvote 0
I am just trying to learn how to use custom formatting. So I wanted to add a format like #,#5 ### and excel accepted it no problem. Then I tried to add #,# but excel did not accept it; instead excel entered #,###. Any idea why?
The comma has special meaning to the Custom Format type pattern... when it is surrounded by # signs or zeroes, it means include the thousand separator in the numeric format... #,### is the shortest type format for a number with the thousands separator showing. To take away this special meaning form the comma (or any character with special meaning) you can either quote it or put a back slash in front of it. I favor the latter approach, so I would suggest using this Custom Format type pattern...

#\,#
 
Upvote 0

Forum statistics

Threads
1,215,906
Messages
6,127,664
Members
449,397
Latest member
Bastbog

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