Log in  \/ 
x
or
x
x
Register  \/ 
x

or

Separate Email addresses to usernames and domains in Excel

Normally, the Email address is consisted of user name, @ symbol and domain name, but, sometimes, you may need to split the Email address into separate username and domain name as below screenshot shown, this article, I will introduce some formulas for splitting the Email addresses in Excel.


Separate Email addresses to usernames and domain names with formulas

Extract usernames from Email addresses:

In Excel, the LEFT and FIND functions can help you to extract the usernames, the generic syntax is:

=LEFT(email, FIND("@", email)-1)
  • email: The Email address or cell contains the Email address that you want to split.

Please copy or enter the following formula into a blank cell where you want to get the result:

=LEFT(A2,FIND("@",A2)-1)

And then, drag the fill handle down to other cells that you want to fill this formula, and all the usernames have been extracted as below screenshot shown:

Explanation of the formula:

FIND("@",A2)-1: The FIND function will return the position of the character @ in cell A2, and subtracting 1 means to exclude the @ character. And it will get the result: 10.

LEFT(A2,FIND("@",A2)-1)=LEFT(A2, 10): The LEFT function will extract 10 characters from the left side od cell A2.


Extract domain names from Email addresses:

To extract the domain names, the RIGHT, LEN and FIND functions can do you a favor, the generic syntax is:

=RIGHT(email, LEN(email)-FIND("@", email))
  • email: The Email address or cell contains the Email address that you want to split.

Please apply the below formula into a blank cell:

=RIGHT(A2,LEN(A2)-FIND("@",A2))

And then, drag the fill handle down to the cells you want to apply this formula, and all domain names have been extracted at once, see screenshot:

Explanation of the formula:

FIND("@",A2): The FIND function will return the position of the character @ in cell A2, and it will get the result: 11.

LEN(A2):This LEN function is used to get the number of characters in cell A2. It will get the number 20.

LEN(A2)-FIND("@",A2)=20-11: Subtract the position of the @ character from the total length of the text string in cell A2 to get the number of character after the @ character. This part formula is recognized as the num_chars argument of the RIGHT function.

RIGHT(A2,LEN(A2)-FIND("@",A2))=RIGHT(A2, 9): At last, this RIGHT function is used to extract 9 characters from the right side of the cell A2.


Relative functions used:

  • LEFT:
  • The LEFT function extracts the given number of characters from the left side of a supplied string.
  • RIGHT:
  • The RIGHT function is used to extract a specific number of characters from the right side of the text string.
  • FIND:
  • The FIND function is used to find a string within another string, and returns the starting position of the string inside another one.
  • LEN:
  • The LEN function returns the number of characters in a text string.

More articles:

  • Separate Octets Of IP Address In Excel
  • Have you ever tried to split the IP addresses into separate columns in Excel worksheet? Maybe the Text to Column feature can help you to solve this job quickly, but, this article, I will talk about some formulas for achieving this task in Excel.
  • Split Text And Numbers In A Cell In Excel
  • Supposing a cell data is mixed with text and numbers, how can you split them into separate column cells? This tutorial is going to show you the detailed steps to get it down with formulas.

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.