Remove some text from a cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am attempting to update an email list. I have exported from Outlook all of
the emails that were returned to me because of a bad email address. Some of
the address' are in a column along with a bunch of other words. My goal is
to "pull" only the email address' out of that column. The only thing that I
see that is consistent in each cell is the @ of the email address.

Your help is greatly appreciated.....
 
Hi!

Try this:

=TRIM(RIGHT(SUBSTITUTE(LEFT(A1,FIND(" ",A1&" ",FIND("@",A1))-1)," ",REPT("
",LEN(A1))),LEN(A1)))

Seems to work on the following possibilities:

please note that Joe<at>Microsoft.com is no longer
Bob<at>Aol.com email is undeliverable
if you can read this buffy<at>netscape.net
Tom01<at>comcast.rr text text
me<at>you.org

Note: I've replaced the "at" sign so the examples won't hyperlink.

Biff
 
Well, I can see that line wrap is going to cause problems with formula so
here it is in chunks:

=TRIM(RIGHT(SUBSTITUTE(LEFT
(A1,FIND(" ",A1&" ",FIND("@",A1))-1)
," ",REPT(" ",LEN(A1))),LEN(A1)))

Biff
 

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

Back
Top