Taking dashes out of SSN

jackson04

New Member
Joined
Jul 28, 2010
Messages
3
I have a long list of SSNs that I need to take the dashes and prefix of the cell. Here is an example:

What I have: 20/123-456-789
What I want: 123456789

I have over 1500 SSNs so by hand is the last option. Any suggestions?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

GTO

MrExcel MVP
Joined
Dec 9, 2008
Messages
6,154
DO you want them fixed-in-place (vba), or the return in another column via formula?
what is "20/"?
Is"20/" (irrespective of being 20/, 21/, etc) always going to be 3 char's to strip off the front?
 

pagrender

Well-known Member
Joined
Sep 3, 2008
Messages
652
Does this work for you?
=RIGHT(SUBSTITUTE(A1,"-",""),9)

Assuming all of your data looks like your sample data, and your data is in Cell A1...
 

jackson04

New Member
Joined
Jul 28, 2010
Messages
3
To GTO: I would like to return the value in another column via formula if possible. The "20/" is a prefix that my organization uses to group SSN by families. This will be stripped off as well.

To pagrender: I will try that now.

Thanks to both of you for the quick reply
 

Watch MrExcel Video

Forum statistics

Threads
1,132,679
Messages
5,654,712
Members
418,149
Latest member
tjanok

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top