Avatar of Rickzzz
Rickzzz
 asked on

Excel - Parse Column Text

cell a1 = user@domain.com

I just need the "user" part prior to the @ in another column.

Thanks in advance!
Microsoft Excel

Avatar of undefined
Last Comment
Rickzzz

8/22/2022 - Mon
Professor J

two option , first option use text to column

go to data tab then text to column

then your delimited and on the selection unmark all mark "other"  then put @ in that small box and then next and finish.

second Option
if you want to use formula instead of text2column then .  lets say your data starts from cell A2 then put in B2  =TRIM(MID(SUBSTITUTE(A2,"@",REPT(" ",99)),1*99-98,99))  and in C2   =TRIM(MID(SUBSTITUTE(A2,"@",REPT(" ",99)),2*99-98,99)) and drag the formula down
ASKER CERTIFIED SOLUTION
sj_rodriguez

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Professor J

if you just need the first part before @  then you only use this =TRIM(MID(SUBSTITUTE(A1,"@",REPT(" ",99)),1*99-98,99))
Rickzzz

ASKER
Perfect, thanks.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy