Archive of Mr Excel Message Board
Back to Forms in Excel VBA archive index
Back to archive home
remove dashes in ss# in cellsPosted 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.
|Check out our Excel Resources
=SUBSTITUTE(A1,"- ","")Posted by Steve Hartman on February 05, 2002 11:19 AM
Re: remove dashes in ss# in cellsPosted 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
assuming your list starts in A1 and copy it down. you could then copy paste special values and delete column A.
Re: remove dashes in ss# in cellsPosted 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.