Archive of Mr Excel Message Board


Back to Forms in Excel VBA archive index
Back to archive home

remove dashes in ss# in cells

Posted by brb on February 05, 2002 11:12 AM
I have a large spreadsheet that I need to remove dashes from a series of SS#'s, ex 454-23-9558 to 454239558.
Thanks

Check out our Excel Resources

=SUBSTITUTE(A1,"- ","")

Posted by Steve Hartman on February 05, 2002 11:19 AM


Re: remove dashes in ss# in cells

Posted by IML on February 05, 2002 11:21 AM

First change the format to general to make sure the dashes are really in there, and it is not a custom format.
If they remain, you could use
=SUBSTITUTE(A1,"-","")
assuming your list starts in A1 and copy it down. you could then copy paste special values and delete column A.

good luck


Re: remove dashes in ss# in cells

Posted by Mark W. on February 05, 2002 11:23 AM
1. Format your SSN's as Text
2. Choose the Edit | Replace... menu command and
replace "-" with nothing.


This archive is from the original message board at www.MrExcel.com.
All contents © 1998-2004 MrExcel.com.
Visit our online store to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.