Solved

Excel 2007 Formatting Column of Numbers to Social Security Format

Posted on 2014-02-10
2
314 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

828 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