Finding text between 2 @ signs

  • Thread starter Thread starter Micki
  • Start date Start date
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
 
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))
 
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
 
Back
Top