Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Excel Value not formatting with cell format change

Posted on 2012-03-23
7
Medium Priority
?
167 Views
Last Modified: 2012-03-23
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.
0
Comment
Question by:GKCU
  • 4
  • 3
7 Comments
 
LVL 12

Expert Comment

by:kgerb
ID: 37757062
Try #-000.  It worked for me in XL2007.

Kyle
0
 
LVL 1

Author Comment

by:GKCU
ID: 37757098
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
0
 
LVL 12

Expert Comment

by:kgerb
ID: 37757117
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
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 1

Author Comment

by:GKCU
ID: 37757139
Ok.  When I do what you suggest, the cell displays:

=TEXT(A1,"#-000")
0
 
LVL 12

Accepted Solution

by:
kgerb earned 2000 total points
ID: 37757164
Go to the formulas tab, formula auditing group, and make sure the Show Formulas button is not clicked.
Show Formulas button
0
 
LVL 1

Author Closing Comment

by:GKCU
ID: 37757177
That was it.  Thank you.
0
 
LVL 12

Expert Comment

by:kgerb
ID: 37757184
You're welcome.  Glad to help.
Kyle
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question