Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

 How to extract username from email addresses in Excel?

As we all know, email address contains two parts which are user name and domain name. But, in certain case, you may need to extract user name from the email address in your worksheet. Are there any good ways for you to get the user name from the email address?

Extract full user name from email address

Extract first and last user name separately from email address


arrow blue right bubble Extract full user name from email address


To extract the full user name from the email address, you can use the mixed Left and Find function.

1. In a blank cell next to your email address, C2, for example, enter this formula: =LEFT(A2,FIND("@",A2)-1),(A2 contains the email address that you want to extract its user name, you can change it as you want), see screenshot:

doc-extract-username-1

2. Then drag the fill handle down to your range cells that you want to contain this formula, and all the user names in the cells have been extracted as follows:

doc-extract-username-1


arrow blue right bubble Extract first and last user name separately from email address

If you want to extract the first name and last name into separate columns, the following formulas can do you a favor.

To get the first name: =LEFT(LEFT(A2,FIND(".",A2)-1),FIND("@",A2)-1)

To get the last name: =LEFT(RIGHT(A2,LEN(A2)-FIND(".",A2)),FIND("@",RIGHT(A2,LEN(A2)-FIND(".",A2)))-1)

Please enter the above formulas into blank cells as you need, and drag the fill handle down to the range that you want to apply the formulas, and then you will see all the first name and last names have been returned into two columns separately. See screenshot:

doc-extract-username-1

Notes:

1. If there isn’t last name within the user name, the formula will return an error value.

2. "." in the above formula indicates the separator between first name and last name, you can change "." to meet your need.

3. If there is no separator between first name and last name of the email address, this formula cannot work.


Related article:

How to extract domains from multiple email addresses in Excel?


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Avinesh · 10 months ago
    Thank you so much for this.
  • To post as a guest, your comment is unpublished.
    Shabeer · 1 years ago
    Hi Team,


    Really great job, I have saved much time
  • To post as a guest, your comment is unpublished.
    Stephen F · 1 years ago
    Thank you so much for this - it saved me SO much time!
  • To post as a guest, your comment is unpublished.
    Mike C · 1 years ago
    thank you, this is awesome!
  • To post as a guest, your comment is unpublished.
    tloh · 1 years ago
    =LEFT(A2,FIND("@",A2)-1) and =RIGHT(A2,FIND(".",A2)-1) worked great for parsing out my domains. Whoever wrote this, thanks so much!
    :D