Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Truncate e-mail text string at the @ portion in excel

Tags:

url

excel

I have a situation where I have email addresses but I need to extract the url's. For example I have the email address [email protected] and I need to remove all the characters up to and including the @ sign leaving me with the url "acmecompany.com". I'd also like to add the "www" in front of the extracted text. Thanks :)

like image 379
Graham Walker Avatar asked Dec 07 '22 19:12

Graham Walker


1 Answers

Split a email address in half:

Username:

=LEFT(A1,FIND("@",A1)-1)

Domain:

=RIGHT(A1,LEN(A1)-FIND("@",A1)+1)

...the +/- 1 adds or removes the @ symbol

like image 58
Chris Avatar answered Dec 24 '22 05:12

Chris