Thanks
Thanks
The Edit/Replace can be found on the Home tab, Editing panel, Find&Select
drop down.
--
Rick (MVP - Excel)
"George" <Geo...@discussions.microsoft.com> wrote in message
news:BAE49FCE-DBCA-43AD...@microsoft.com...
Sub ReplaceDashes()
Columns("D:D").Replace What:="-", _
Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, _
MatchCase:=False, _
SearchFormat:=False, _
ReplaceFormat:=False
End Sub
--
jb
How can I get Jacob's suggestion to work ?
Thanks
--
Rick (MVP - Excel)
"George" <Geo...@discussions.microsoft.com> wrote in message
news:BAE49FCE-DBCA-43AD...@microsoft.com...
Shortkey is Ctrl+H
Thanks
You're importing this into Access. If the Access field type is text
spanning 9 characters, then in Excel the first step you need to
perform is applying the number format Text (that's its name) to the
column of SSNs, then [Ctrl]+H to display the Replace dialog, then
follow the other respondents' suggestions. If the Access field type is
number formatted with leading zeros, then there shouldn't be a problem
with Excel dropping the leading zeros.
=TEXT(A1,"000000000")
the zeros are all the digits in the social insurance #, I consider 9, if
they are more just add it to the formula, it will solve your problem
change A1 to where your range start and copy formula down
=SUBSTITUTE(D1,"-",)
If this post helps click Yes
---------------
Jacob Skaria
Thanks- Sorry for the trouble...
=SUBSTITUTE(A1,"-",)
=TEXT(A1,"000000000")
as explained before
if your data start in cell A1 you put the formula in B1