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.

Using TEXTSPLIT to get name and domain from an email address

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.

Using TEXTSPLIT to get name and domain from an email address

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.

Using TEXTSPLIT to get name and domain from an email address

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.

Using TEXTSPLIT to get name and domain from an email address

Using TEXTSPLIT to get name and domain from an email address

Excel formula: Create email address from name

Excel formula: Get domain from email address

Excel formula: Get domain name from URL

Excel formula: Get top level domain (TLD)

Excel formula: Remove protocol from URL

Excel TEXTSPLIT function

Excel TEXTBEFORE function

Excel LEFT function

Excel FIND function

Article image

Article image