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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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?
 
Upvote 0
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...
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,685
Members
448,978
Latest member
rrauni

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
Back
Top