ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Text
  3. Create Email Addresses From Names in Excel

Create Email Addresses From Names in Excel

By ExcelReady Team·Updated November 2, 2026·7 min read

The short answer

To create an email address from a name in Excel, join the first name, a dot, the last name and the domain with &, then wrap it in LOWER: =LOWER(A2&"."&B2&"@example.com"). Add TRIM to remove stray spaces, and SUBSTITUTE to drop spaces or apostrophes inside names. Fill the formula down to build the whole list.

Key takeaways

  • The basic pattern is =LOWER(A2&"."&B2&"@example.com"): first name, dot, last name, domain.
  • Wrap names in TRIM so a hidden space doesn't end up inside the address.
  • Use SUBSTITUTE to remove spaces and apostrophes, which are not safe in an email address.
  • TEXTJOIN joins parts with a separator and can skip a blank middle name.
  • Check the finished list for duplicates with COUNTIF before you import it anywhere.
On this page+
  1. The sample data
  2. How to create an email address from a first and last name
  3. How to remove spaces and apostrophes from the names
  4. How to use TEXTJOIN for a middle name
  5. Other email formats: initials and full names in one cell
  6. How to check the list for duplicates
  7. Common problems when building emails
  8. Practise it

To create an email from a name in Excel, you join the first name, a dot, the last name and the company domain into one piece of text, then make it lowercase. The formula is =LOWER(A2&"."&B2&"@example.com"), and it takes a minute to set up for a list of any size. This guide is for anyone setting up new staff accounts, a mailing list or a test task in a job assessment.

The sample data#

All the examples use this small staff list. Column A holds first names and column B holds last names. Some names have the problems you will meet in real data: a trailing space after "Lopez", an apostrophe, and names with a space inside them.

ABC
1FirstLastEmail
2MariaLopez␣
3JamesO'Neil
4Anna LeePark
5Tomvan Dijk

The ␣ symbol shows the hidden space at the end of "Lopez ". You can't see it in Excel, but it will end up inside the address if you don't remove it.

How to create an email address from a first and last name#

Join the parts with the & operator, which glues pieces of text together. Text you type yourself, like the dot and the domain, goes in double quotes.

Excel formula
=A2&"."&B2&"@example.com"

For row 3 this returns James.O'Neil@example.com. It works, but it has capital letters and an apostrophe. Most email systems ignore capitals, but a lowercase list looks tidy and avoids duplicates that differ only in case. Wrap the formula in LOWER:

Excel formula
=LOWER(A2&"."&B2&"@example.com")

Now row 3 returns james.o'neil@example.com. To fill the whole column, select C2:C5 and press Ctrl+D on Windows or ⌘D on a Mac. You can also double-click the small square at the bottom-right of C2.

If you'd rather keep the domain in its own cell, say E1, use "@"&$E$1 instead of typing it. The $ signs lock the reference so it doesn't move when you fill down. Then you change the domain in one place and every address updates. For more ways to join text, see the guide to combining text from several cells.

How to remove spaces and apostrophes from the names#

Clean the names inside the formula, so the source data stays as it is. Three small functions do the work:

  • TRIM removes spaces at the start and end of the text, and turns double spaces into single ones.
  • SUBSTITUTE(text, old, new) replaces one piece of text with another. Replacing " " with "" deletes every space.
  • LOWER turns every letter into lowercase.

Here is the cleaned version, written over two lines so it is easier to read:

Excel formula
=LOWER(SUBSTITUTE(SUBSTITUTE(
  TRIM(A2)&"."&TRIM(B2)," ",""),"'","")&"@example.com")

The inner SUBSTITUTE removes spaces and the outer one removes apostrophes. The results are:

NameEmail
Maria Lopez␣maria.lopez@example.com
James O'Neiljames.oneil@example.com
Anna Lee Parkannalee.park@example.com
Tom van Dijktom.vandijk@example.com

TRIM is not strictly needed once SUBSTITUTE deletes every space, but keeping it makes the intent clear and protects you if you later swap the space for a dot. The cleaning text lesson covers TRIM, SUBSTITUTE and their friends in more detail.

How to use TEXTJOIN for a middle name#

TEXTJOIN joins a list of cells with the same separator between each one, and it can skip blank cells. The syntax is:

Excel formula
=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)

Say column B holds an optional middle name and column C the last name. Some people have a middle name and some don't. With &, a blank middle name leaves two dots in a row. TEXTJOIN with TRUE skips the blank:

Excel formula
=LOWER(TEXTJOIN(".",TRUE,A2:C2))&"@example.com"

For "Maria", blank, "Lopez" this gives maria.lopez@example.com. For "Anna", "Lee", "Park" it gives anna.lee.park@example.com. TEXTJOIN needs Excel 2019, Excel 2021 or Microsoft 365. The TEXTJOIN function guide explains each argument.

Other email formats: initials and full names in one cell#

Companies use different patterns, and each one is a small change to the same formula.

FormatFormulaResult for Maria Lopez
first.last=LOWER(A2&"."&B2&"@example.com")maria.lopez@example.com
first initial + last=LOWER(LEFT(A2,1)&B2&"@example.com")mlopez@example.com
first + last initial=LOWER(A2&LEFT(B2,1)&"@example.com")marial@example.com
last_first=LOWER(B2&"_"&A2&"@example.com")lopez_maria@example.com

LEFT(text, 1) returns the first character of the text. The guide on getting initials from a name goes further, including middle initials.

If the full name sits in one cell, like "Maria Lopez" in A2, split it first. In Microsoft 365 or Excel 2024, TEXTBEFORE and TEXTAFTER do this neatly:

Excel formula
=LOWER(TEXTBEFORE(A2," ")&"."&TEXTAFTER(A2," ",-1))&"@example.com"

TEXTBEFORE takes the text before the first space. TEXTAFTER with -1 takes the text after the last space, so a middle name is skipped. In older versions, use LEFT(A2,FIND(" ",A2)-1) for the first name.

How to check the list for duplicates#

Two people with the same name get the same address, and most systems will reject the second one. Add a check column next to the emails:

Excel formula
=COUNTIF($C$2:$C$100,C2)>1

TRUE means the address appears more than once. Fix those by hand, for example by adding a middle initial or a number. COUNTIF is not case-sensitive, so Maria.Lopez and maria.lopez count as the same address, which is what you want here.

Going the other way, from an address back to its parts, is just as common. See how to extract the domain from an email address.

Common problems when building emails#

Most broken addresses come from the data, not the formula. Check these:

  1. Spaces inside the address. A space before or after a name sneaks in. Use TRIM, or SUBSTITUTE to remove every space.
  2. Accented letters. Names like José or Zoë keep their accents. Many email systems don't accept them, so replace them with SUBSTITUTE or fix them by hand.
  3. Missing @. Typing "example.com" instead of "@example.com" gives maria.lopezexample.com.
  4. The formula shows instead of the result. The cell was formatted as Text before you typed. Change it to General and re-enter the formula.
  5. You need values, not formulas. Before you send the list to another system, copy the column and paste it as values so the addresses don't change if the names do.

Flash Fill is a no-formula option: type the first address by hand, then choose Data > Flash Fill (Ctrl+E on Windows). Excel copies the pattern, but it guesses, so check odd names like "van Dijk" carefully.

Practise it#

Joining text with & and cleaning it with TRIM are skills that show up in many job tests. Practise joining text in a live spreadsheet: you type the formula and it checks it instantly. Then try the exercise on this page, which builds Maria's address from a name with a hidden space.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Build Maria's work email in C2: trim both names, join them with a dot, add @example.com, and make it lowercase.

fx
ABCD
1
First
Last
Email
2
Maria
Lopez
3
James
O'Neil
4
Anna Lee
Park
5
Tom
van Dijk
6
7
8

Tip: Put TRIM around A2 and B2, join them with "." in the middle, add "@example.com" at the end, and wrap it all in LOWER.

Practise this in a lesson

LessonJoining text: &, CONCAT and TEXTJOINBuild full names, addresses and tag lists by joining text with &, CONCAT and TEXTJOIN.LessonCleaning messy textFix stray spaces, random capitals and inconsistent separators in imported data with TRIM, PROPER, UPPER, LOWER and SUBSTITUTE.Function guideTEXTJOINJoin cells with commas, spaces or semicolons using TEXTJOIN, and skip blanks automatically. Examples, pitfalls and a live exercise.

Frequently asked questions

How do I create an email address from first and last name in Excel?

+

Join the parts with the & operator and add the domain: =LOWER(A2&"."&B2&"@example.com"). Then fill the formula down the column.

How do I make the email first initial and last name?

+

Take the first letter with LEFT: =LOWER(LEFT(A2,1)&B2&"@example.com"). For Maria Lopez this gives mlopez@example.com.

How do I remove spaces from names before making emails?

+

Use TRIM for spaces at the start and end, and SUBSTITUTE(text," ","") for spaces inside a name, such as van Dijk. Wrap the whole result in LOWER.

Can Excel create email addresses automatically without a formula?

+

Yes. Type one or two addresses by hand next to the names, then use Flash Fill from the Data tab. Excel copies the pattern, but check the results because it guesses.

How do I turn the email text into a clickable link?

+

Use the HYPERLINK function: =HYPERLINK("mailto:"&C2,C2). The cell then opens a new email to that address when you click it.

Sources

  • TEXTJOIN function - Microsoft Support
  • SUBSTITUTE function - Microsoft Support
  • TRIM function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. The sample data
  2. How to create an email address from a first and last name
  3. How to remove spaces and apostrophes from the names
  4. How to use TEXTJOIN for a middle name
  5. Other email formats: initials and full names in one cell
  6. How to check the list for duplicates
  7. Common problems when building emails
  8. Practise it

Keep reading

Text· 7 min read

Get Initials From a Name in Excel

To get initials from a name in Excel, take the first letter of the first name and the first letter after the space: =LEFT(A2,1)&MID(A2,FIND(" ",A2)+1,1) turns Maria Lopez into ML. In Microsoft 365 or Excel 2024, =CONCAT(LEFT(TEXTSPLIT(A2," "))) returns the initials of every word, including middle names.

Text· 7 min read

Extract the Domain or Username From an Email in Excel

To extract the domain from an email address, take everything after the @ sign. In Microsoft 365, use =TEXTAFTER(A2,"@"). In any version, use =MID(A2,FIND("@",A2)+1,LEN(A2)). For the username, take everything before the @: =TEXTBEFORE(A2,"@") or =LEFT(A2,FIND("@",A2)-1). Wrap either in IFERROR for cells without an @.

Dates· 6 min read

Get the Day Name From a Date in Excel

To get the day name from a date in Excel, use =TEXT(A2,"dddd") for the full name, like Monday, or =TEXT(A2,"ddd") for the short name, like Mon. The result is text. To show the day name but keep the cell a real date, apply a custom number format of dddd instead. For your own labels, use CHOOSE with WEEKDAY.

More on text

  • Case-Sensitive Matching in Excel With EXACT
  • Extract the Domain From a URL in Excel
  • How to Extract the First Word in Excel
  • Extract the Last Word From a Cell in Excel
  • Extract Numbers From Text in Excel
  • Extract Text Between Two Characters in Excel
All text articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free