Link to home
Start Free TrialLog in
Avatar of GKCU
GKCU

asked on

Excel Value not formatting with cell format change

I have an excel sheet with numbers that look like this:

7137000
7137012
5465000
5465010

I want the numbers to look like this:

7137-000
7137-012
5465-000
5465-010

I go into Format Cell and put

#-###

Inside the the format cell properties it shows the number as 7137-000, but when I hit ok, the numbers don't change.  They stay exactly like they were before. This is in MS Excel 2010.  I already checked and the cell is not protected.
Avatar of kgerb
kgerb
Flag of United States of America image

Try #-000.  It worked for me in XL2007.

Kyle
Avatar of GKCU
GKCU

ASKER

Nope.  Cells stayed the same:

7137000
7137012
5465000
5465010


Though I am sure your way would make my numbers look like this:

7137000-000
When I want it to look like

7137-000
Nope, #-000 will work.  Try this.  In another cell point to one of your numbers with this formula.

=TEXT(A1,"#-000")

It might be that there is a hidden character that is making excel think the numbers are text.

Kyle
Avatar of GKCU

ASKER

Ok.  When I do what you suggest, the cell displays:

=TEXT(A1,"#-000")
ASKER CERTIFIED SOLUTION
Avatar of kgerb
kgerb
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GKCU

ASKER

That was it.  Thank you.
You're welcome.  Glad to help.
Kyle