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.
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.
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
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
=TEXT(A1,"#-000")
It might be that there is a hidden character that is making excel think the numbers are text.
Kyle
ASKER
Ok. When I do what you suggest, the cell displays:
=TEXT(A1,"#-000")
=TEXT(A1,"#-000")
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That was it. Thank you.
You're welcome. Glad to help.
Kyle
Kyle
Kyle