ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   2007: Number format < Number format (https://www.excelbanter.com/excel-discussion-misc-queries/218669-2007-number-format-number-format.html)

GeoBrooks

2007: Number format < Number format
 
In Excel 2007:

If one formats a range using the Ribbon: Number group, Number (from the drop
down box), Comma, click the decrease decimal button twice, the cell(s) are
formatted with padding on the right. Using the Format command to view the
applied format, one finds that a custom format has been applied.

If one instead uses the Cells group, Format command (or right click, Format
cells...) and selects Number, comma separator, zero decimals, the cell(s) are
formatted without padding. In this case, no custom format has been applied.

Yeah, I know. Picky, picky. It just pays to be consistent. And attentive.

G



Sheeloo[_3_]

2007: Number format < Number format
 
If you would look just above the Comma on the Number group you will find a
dropdown telling you the formatting applied to the cell(s).

You will also notice that when you click on the Comma the formatting applied
is 'Accounting' which is the same as
_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)

Now when you click on the decimal button to reduce the number of decimals to
zero, formatting changes to 'Custom' (which is what you are doing) which is
the same as
_(* #,##0_);_(* (#,##0);_(* "-"??_);_(@_)

Now when you apply the format Number with zero decimals you are really
applying
#,##0_);(#,##0)

which is different from the one you get by clicking on Comma (as it should
be since Comma applies the 'Accounting' format)

btw thanks to your post I noticed the drop-down (for the first time) today...

Goes to show that you can work with it for years and still miss things which
are right in front of your eyes....

Have a nice day....

Q: Do I qualify as 'picky'?
or 'attentive' :-)

"GeoBrooks" wrote:

In Excel 2007:

If one formats a range using the Ribbon: Number group, Number (from the drop
down box), Comma, click the decrease decimal button twice, the cell(s) are
formatted with padding on the right. Using the Format command to view the
applied format, one finds that a custom format has been applied.

If one instead uses the Cells group, Format command (or right click, Format
cells...) and selects Number, comma separator, zero decimals, the cell(s) are
formatted without padding. In this case, no custom format has been applied.

Yeah, I know. Picky, picky. It just pays to be consistent. And attentive.

G




All times are GMT +1. The time now is 08:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com