comma align numbers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am running Excel 2002 on XP.

I have a wide column and all the numbers in the column are six or less
digits. I would like to center the numbers and have them comma align. How
would this be accomplished?

All help appreciated
 
You cannot 'center' them and have the commas align. You can, however, use
custom formats to make them right aligned yet mostly in the center of the
column.

Select the range of cells you want to 'center' and then choose
Format>Cells>Number
In the left hand panel select Custom, then use this text in the Type line:

#,##0;-#,##0

Now choose the Alignment tab and set the Horizontal to 'Right (Indent)' Now
adjust the Indent level to 3 or 4 and click on OK

If the numbers are too far left, reduce the indent level a little. If they
aren't far enough left, raise it a little
 
bacai,

From help:

? adds spaces for insignificant zeros on either side of the decimal point so
that decimal points align when formatted with a fixed-width font, such as
Courier New.

To display Use
this code
44.398, 102.65, and 2.8 with aligned decimals ???.???

I'm guessing that commas can be aligned in a similar manner.

HTH,
Bernie
MS Excel MVP
 
And it works with non-proportional fonts, too.

To the OP, maybe using Bernie's idea...Something like:
?,???.???
would work ok for you.
 

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

Similar Threads


Back
Top