Get a middle initial from a full-name field
Turn Ava Marie Reed into M., ready for labels and lists.
Download Excel templateMicrosoft 365
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | TRIM(A8) | The full name, without stray spaces. | "Ava Marie Reed" |
| 2 | TEXTAFTER( … ," ") | Drops the first word, the first name. | "Marie Reed" |
| 3 | TEXTBEFORE( … ," ",-1) | Drops the last word, the last name. | "Marie" |
| 4 | UPPER(LEFT( … ,1)) | Keeps the first letter, as a capital. | "M" |
| 5 | IFERROR( … &".","") | Adds a period, or shows nothing with no middle name. | "M." |
Each bracket wraps the one above it, so Excel works from the inside out. Part 5 also adds the period.
=IFERROR(UPPER(LEFT(TEXTBEFORE(TEXTAFTER(TRIM(A8)," ")," ",-1),1))&".","")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 full names into the green column of the Template tab. Middle initials fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
The first word counts as the first name and the last word as the last name. Mary Ann de la Cruz would give A., so check longer names by hand.
Route: Get names ready for the letter
Microsoft's help: TEXTBEFORE function
OTHER ROUTES YOU MIGHT LIKE

Make first-and-last initials from a name
Ava Marie Reed → AR
Get the template →
Separate two initials with a space
AM → A M
Get the template →
Turn a semicolon name list into lines
Ava Reed; Noah Park → Ava Reed ¶ Noah Park
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →