All three options are explained below.
TEXTBEFORE function
TheTEXTBEFORE functionreturns the text that occursbeforea given delimiter.
The generic syntax for TEXTBEFORE supports many options:
However, most of these arguments are optional.
For more details on TEXTBEFORE, seeHow to use the TEXTBEFORE function.
Note: you’re free to use theTEXTAFTER functionto extract the domain from the email.
For more details on TEXTSPLIT, seeHow to use the TEXTSPLIT function.
As the formula is copied down the column, it performs the same operation on each email address.
Although this formula is more complicated than the TEXTBEFORE or TEXTSPLIT options above, it achieves the same result.
TEXTSPLIT can split text into rows or columns.
TEXTBEFORE Function
The Excel TEXTBEFORE function returns the text that occurs before a given substring or delimiter.
For example, =LEFT(“apple”,3) returns “app”.
When the text is not found, FIND returns a #VALUE error.