0

I would like to split the username and email domain from an email address. For Example, test.leo@gmail.com to test.leo and **gmail ** without .com

Formula used: =IFERROR(SPLIT(REGEXREPLACE(INDEX(Filter!$A:$AY,MATCH($A39,Filter!$A:$A,0),MATCH(N$1,Filter!$1:$1,0)), "\[a-zA-Z0-9_]",""), "@"), "")

leo
  • 1

2 Answers2

1

tested on couple of email address varieties here. you may test it out extensively on your whole data set & see how it goes...

=INDEX(IF(LEN(A2:A),REGEXREPLACE(REGEXEXTRACT(A2:A,"^(.*)@(.*)\."),"\.co$",""),))

enter image description here

rockinfreakshow
  • 15,077
  • 3
  • 12
  • 19
0

You can try also with this option:

=INDEX(IF(ISEMAIL(A2:A),REGEXEXTRACT(A2:A,"(.+)@(.+?)."),))

enter image description here

If you need only to remove the last ".***" Just remove the interrogation mark

Martín
  • 7,849
  • 2
  • 3
  • 13