View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default Stripping out characters

On Thu, 3 Dec 2009 06:26:01 -0800, Stephanie
wrote:

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

= gmail
= comcast
= 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,FI ND("@",A1)+1,99))-1)

--ron