Get first part of hyphenated last name
Turn Reed-Park into Reed for short labels and greetings.
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 hyphen. | "Reed" |
| 2 | TRIM( … ) | Removes any spaces left at the ends. | "Reed" |
| 3 | TRIM(A8) | With no hyphen, keeps the whole last name. | Not used for row 8 |
| 4 | IFERROR( … ) | Switches to part 3 when there is no hyphen. | "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 last names into the green column of the Template tab. The first parts fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Only the part before the first hyphen is kept, so Lopez-Santos-Dubois gives Lopez. Check names with two hyphens by hand.
Route: Get names ready for the letter
Microsoft's help: TEXTBEFORE function
OTHER ROUTES YOU MIGHT LIKE

Get the rest of a hyphenated last name
Reed-Park → Park
Get the template →
Get a preferred name from parentheses
Ava (Avie) Reed → Avie
Get the template →
Keep the formal name around nicknames
Ava (Avie) Reed → Ava Reed
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →