Finding text between 2 @ signs

M

Micki

I have the folling in a cell:
SD09071707444004362@Micki Caldwell@20090716115600

I want to remove the text between the 2 @ signs. Thank you
 
G

Glenn

Micki said:
I have the folling in a cell:
SD09071707444004362@Micki Caldwell@20090716115600

I want to remove the text between the 2 @ signs. Thank you


=LEFT(A1,FIND("@",A1)-1)&
MID(A1,FIND("@",A1,FIND("@",A1)+1)+1,LEN(A1))
 
M

Mike H

Hi,

Try this with your string in a1

=MID(A1,FIND(CHAR(7),SUBSTITUTE(A1,"@",CHAR(7),1))+1,FIND(CHAR(7),SUBSTITUTE(A1,"@",CHAR(7),2))-FIND(CHAR(7),SUBSTITUTE(A1,"@",CHAR(7),1))-1)

Mike
 

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