Solved

Excel 2007 Formatting Column of Numbers to Social Security Format

Posted on 2014-02-10
2
319 Views
Last Modified: 2014-02-11
Hello,

I have a column of numbers (column A) that are social security numbers and need to be in SSN format.  For some reason the custom SSN format is not working on these numbers.  They appear in SSN format in the column but on the formula/number bar they are missing the dashes.

Can someone provide a formula that will look at 9 digits of numbers and add the necessary dashes so its in SSN format?  Im guessing a left mid right string?

Thanks!
0
Comment
Question by:Escanaba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39848342
If you format the numbers as SSN you will see the number without dashes in the formula bar.

You will need to add a formula in another column if you want the actual cell to contain the dashes...

e.g.

=TEXT(A1,"000-000-000")

You can then copy this column and paste special >> values over the original, and delete the formula column.
0
 
LVL 23

Expert Comment

by:Danny Child
ID: 39848721
You can also select the cells as they are, and go to Format Cells.. Number.. Custom and set the custom format as:
000-000-000
This should insert the dashes for you, but leaves the underlying numbers exactly as they were.  On the sheet itself they will display correctly, but the formula bar will just show the "bare" number.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

630 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