In this article:

Extract Name From Email Address in Google Sheets (2024 Update)


Click here to Send an Email From a Lido Spreadsheet

In this article we will show how to extract names from email addresses in google sheets in just a few simple steps. Simply follow the steps below:

Extract Name From Email Address in Google Sheets

1. Identify the Cell Containing the Email

For our example, we have two columns: Column A for the Name and Column B for the email.

The cells containing the emails in Column B start at B2. We then set Column C as the column for the names that we want to extract from the emails in Column B.

 extract name from email google sheets‍

2. Identify the Username Format in the Email Address

Email usernames (the part to the left of the @) do not have a standard syntax that is uniformly applied across different services.

However, certain hosts such as companies and schools often use standardized formatting across their organization.

For instance, they may use periods and underscores to separate first and last names. Some examples of this are:

firstname.lastname@company.com

firstname_lastname@company.com

These two combinations are included in the example below:

extract name from email in google sheets

3. Insert Formula to Extract The Name

The formula that we will use to extract the name from the emails is the following:

=PROPER(SUBSTITUTE(SUBSTITUTE(LEFT(cell, FIND("@", cell) - 1), ".", " "), "_", " "))

Where you replace cell with the reference to the cell containing the email address. In our example we will change “cell” to B2 in the formula.

=PROPER(SUBSTITUTE(SUBSTITUTE(LEFT(B2, FIND("@", B2) - 1), ".", " "), "_", " "))

extracting names from emails google sheets

4 Press Enter

You will now see the name extracted from the email address, properly formatted as well!

google sheets get a name from an email address

5. Apply the Formula to Entire Column

In order to extract the domain from all of the emails in the column there are two methods you can follow: 

Click on the cell and double-click the round blue dot to autofill the column with the formula.

formula to take name from email address in google sheets

Click on the cell and Click-drag the round blue dot in the lower-right corner of the cell.

Retrieve Name from Email in Google Spreadsheets

Either way, the results will be the same:

Google Sheets: Name Extraction from Email

Name extracted from email address

You have now successfully extracted a name from an email in Google Sheets!

FAQs

What if the last name comes first instead of the first name?

The last name appearing first before the first name in email addresses are less common, but the solution can be pretty straightforward: instead of a space, we insert a comma to denote that the last name comes first. The formula can be modified to:

=PROPER(SUBSTITUTE(SUBSTITUTE(LEFT(cell, FIND("@", cell) - 1), ".", ", "), "_", ", "))

Where you replace the cell with the reference to the cell containing the email address. The result is:

Name extracted from an email address in google sheets spreadsheet

What if the first name is just an initial?

Some email addresses are formatted to only have first name initials. If the first name initial is directly followed by the last name without a separator, the formula you can use is:

=PROPER(LEFT(cell,1) & ". " & REPLACE(LEFT(cell, FIND("@", cell) - 1),1,1,""))

Where you replace the cell with the reference to the cell containing the email address. You can see the result below:

If a separator such as a dot or an underscore is present, just modify the formula a little:

=PROPER(LEFT(cell,1) & ". " & REPLACE(LEFT(B7, FIND("@", cell) - 1),1,2,""))

Where you replace the cell with the reference to the cell containing the email address:

Get a Name from an Email Address in Google Sheets

If you enjoyed this article, you might also like some of the articles below:

Email .CSV Files to Google Sheets

Google Sheets Mail Merge

How to Send Google Sheets Email

Automate repetitive tasks with Lido

Save hours on repetitive and tedious work. Lido is a new spreadsheet that connects your spreadsheets, forms, PDFs, and email inbox.

Trigger
Action
Select trigger
When a cell value in Google Sheets changes
Check Google Sheets for today's date
When a new row is added to Google Sheets
On new Google Form submission
Send me a daily reminder
On new Typeform submission
When a cell value in database changes
Check database for today's date
When a new row is added in database
When a new HubSpot customer is created
Select action
ADDCALENDAREVENT
Creates a one- or multiple-day calendar event with optional attendees
ADDHUBSPOT
Adds an object to Hubspot
ADDSLACKCHANNEL
Create a Slack channel, and optionally add a topic or members
CALLURL
Makes any HTTP request
CREATEGOOGLEDOC
Replaces [@column_name] values in a Google Doc with the corresponding table row's values
CREATEPDF
Replaces [@column_name] values in a Google Doc with the corresponding table row's values, then export it as a PDF
FETCH
Makes any HTTP request and returns the response
INSERTROWS
Inserts given array below defined values in given worksheet
SENDGMAIL
Sends an email using your Google account
SENDOUTLOOK
Sends an email using your Microsoft Outlook account
SENDSLACK
Sends a Slack message
SENDSMS
Sends an SMS message using your Twilio account
UPDATECELL
Updates cells with given values
UPDATEHUBSPOT
Updates a property of a Hubspot object
Trigger is required
Action is required
Get started