Text in Custom Number Formats

H

Harlan Grove

There are old posts in the newsgroups showing how to center align text
while right aligning numbers in a cell using the custom number format
"* 0;* -0;* 0;@" and setting horizontal alignment to Centered. The '*
' piece can also be applied in the text portion of the format, e.g.,
"0;-0;0;* @" with General horizontal alignment would right align text.

So what? Could just set horizontal alignment to Right. But in Excel
2007 and later number formats can be included in conditional formats
but alignment can't, so this trick could be used to change text
alignment in conditional formats.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top