Stripping out characters

D

Dave Peterson

Copy the column to another column--just in case:

Select the column
Edit|Replace
what: *@
with: (leave blank)
replace all

(and once more)
edit|Replace
what: .*
with: (leave blank)
replace all
 
S

Stefi

=MID(A1,SEARCH("@",A1)+1,SEARCH(".",A1,SEARCH("@",A1))-SEARCH("@",A1)-1)

--
Regards!
Stefi



„Stephanie†ezt írta:
 
R

Ron Rosenfeld

Hi-
I have a field that contains email addresses. I would like to strip the
address down to just the domain:

[email protected] = gmail
[email protected] = comcast
[email protected] = aol

So essentially I want to capture anything after the "@", up to the "."

I'd appreciate your suggestions!

To return everything after the "@", and up to the FIRST "." :

=LEFT(MID(A1,FIND("@",A1)+1,99),FIND(".",MID(A1,FIND("@",A1)+1,99))-1)

--ron
 
Top