cell will not center

G

Guest

Hi.

I have a user with an Excel worksheet. There are multiple rows and columns
and they are all set on center alignment, (center alignment icon on the
toolbar as well as Format Cells --> Horizontal Alignment --> Center.) The
alphabetical characters align correctly but the numerical don't, as they will
only left align. Format Cells --> Number is set to General, so I don't know
why it won't change the alignment.

Other than the worksheet being corrupted, I don't know what could be wrong
with it.

Any suggestions are much appreciated.

Thanks!

Hilary
 
D

Dodo

Hi.

I have a user with an Excel worksheet. There are multiple rows and
columns and they are all set on center alignment, (center alignment
icon on the toolbar as well as Format Cells --> Horizontal Alignment
--> Center.) The alphabetical characters align correctly but the
numerical don't, as they will only left align.

Do you see (in the formula bar) an apostrophe ' before these numbers?
 
D

Dodo

Nope. No apostrophe.

The only other thing I can think of giving this result, is when the
"numbers" are followed by spaces. This you can check too in the formula
bar.
 
B

Bryan Hessey

Is the user using Excel for the worksheet, or a viewer of some form?

Can the user, in another cell, put =A1+1 (where A1 is replaced with
address of one of the offending cells)

Does the offending cell show the data to the left and double width, as
it would be if Alt/Enter were used in the cell?

Are there any other clues, such as what happens if you re-enter the
number in the cell? (you can Ctrl/Z to un-enter that)
 
D

Dave Peterson

Is the cell part of a merged area? (maybe it's centered in those cells that are
merged?)

Has the cell been part of multiple cells that were formatted via:
cells|format|alignment tab|horizontal text alignment box:
Center across Selection

I remember having trouble turning that off in earlier versions and keeping
alignment the way I wanted.

Are you sure that the cell is really formatted as general:
select the cell
hit alt-f11 (to get to the VBE)
hit ctrl-g (to see the immediate window)

type this:
?activecell.numberformat

do you get: General
returned?
 
G

Guest

Hi Dave.

No, it's not part of a merged area nor has the cell been part of multiple
cells that were formatted as you described. And finally, I entered
?activecell.numberformat and got "general."

I'm stumped!

Hilary
 
G

Guest

Hi Bryan.

The user is using Excel for the worksheet. When I put =A1+1 (replacing with
the offending cell), it does not add the two numbers. Finally, nothing
different happens when I re-enter a number in the offending cell.

However, cells with alphabetical text do center properly.

Any other thoughts?

Hilary
 
G

Guest

Hi Bryan.

The user is using Excel for the worksheet. When I put =A1+1 (replacing with
the offending cell), it does not add the two numbers. Finally, nothing
different happens when I re-enter a number in the offending cell.

However, cells with alphabetical text do center properly.

Any other thoughts?

Hilary
 
G

Guest

Nope, no spaces either.

Dodo said:
The only other thing I can think of giving this result, is when the
"numbers" are followed by spaces. This you can check too in the formula
bar.
 
D

Dave Peterson

I don't have another guess.

Sorry.
Hi Dave.

No, it's not part of a merged area nor has the cell been part of multiple
cells that were formatted as you described. And finally, I entered
?activecell.numberformat and got "general."

I'm stumped!

Hilary
 
D

Dodo

Hi Bryan.

The user is using Excel for the worksheet. When I put =A1+1 (replacing
with the offending cell), it does not add the two numbers.

Doesn't that indicate that the offending cell's format is not number?!

What do you get as a result of this formula?

Does this all happen only on the user's puter or also on other machines
when you copy the spreadsheet there?
 
G

Guest

Thanks for your help. We've decided to just call it a currupted file and copy
and paste into a new worksheet. Thanks though!

Hilary
 

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