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 to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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