Stripping out characters

S

Stephanie

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

(e-mail address removed) = gmail
(e-mail address removed) = comcast
(e-mail address removed) = aol

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

I'd appreciate your suggestions!
 
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:

(e-mail address removed) = gmail
(e-mail address removed) = comcast
(e-mail address removed) = 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top