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?
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...
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.