Get a display name before an email
Turn Ava Reed <ava.reed@example.com> into Ava Reed for greetings and labels.
Download Excel templateMicrosoft 365
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | TEXTBEFORE(A8,"<") | Takes what comes before the first < sign. | "Ava Reed " |
| 2 | TRIM( … ) | Removes the space left at the end. | "Ava Reed" |
| 3 | TRIM(A8) | With no < sign, keeps the whole cell. | Not used for row 8 |
| 4 | IFERROR( … ) | Uses part 3 when there is no < sign. | "Ava Reed" |
Each bracket wraps the one above it, so Excel works from the inside out.
=IFERROR(TRIM(TEXTBEFORE(A8,"<")),TRIM(A8))How to use it
Yellow bar at the top? Click Enable Editing.
- See it work. The Example tab shows 20 made-up names with the formula already in.
- Use your own names. Paste names with email addresses into the green column of the Template tab. The display names fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
A cell with only an email address keeps the address, not a name. Check those rows and type the names by hand.
Route: Get names ready for the letter
Microsoft's help: TEXTBEFORE function
OTHER ROUTES YOU MIGHT LIKE

Get the first person from a household
Ava Reed & Noah Park → Ava Reed
Get the template →
Get the second person from a household
Ava Reed & Noah Park → Noah Park
Get the template →
Get a surname using a given name
Mary Ann de la Cruz + Mary Ann → de la Cruz
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →