Link to home
Start Free TrialLog in
Avatar of ssblue
ssblueFlag for United States of America

asked on

EXcel - i need to seperate names and email addresses

I have a list of names and email addresses with the following format. How can I separate the names from the emails?

What I have:
Column A
Smith, Sue <smithsss@yahoo.com>

What I want:
Column B                       Column C
Smith, Sue                <smithsss@yahoo.com>
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Assuming you have Full Name with Email in A2
Full Name in B2:
=PROPER(SUBSTITUTE(LEFT(A2,FIND("<",A2)-1),"."," "))

Open in new window

Email ID in C2:
=TRIM(MID(SUBSTITUTE(" "&$A2&" "," ",REPT(" ",40)),FIND(REPT("@",COLUMNS($A2:A2)),SUBSTITUTE(SUBSTITUTE(" "&$A2&" "," ",REPT(" ",40)),"@",REPT("@",COLUMNS($A2:A2)),COLUMNS($A2:A2)))-40,80))

Open in new window

ssblue_Split-Name---Email.xlsx
Avatar of ssblue

ASKER

Thanks, I didn't know how to use the trim and find together.
Avatar of Bill Prew
Bill Prew

Welcome, glad that helped.


»bp