Combine two middle names as initials

Turn Ava, Marie, Anne and Reed into Ava M. A. Reed for letters and badges.

What you'll make

In Excel: Ava + Marie + Anne + Reed becomes Ava M. A. Reed.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The first name."Ava"
2IF(TRIM(B8)…)Adds the first middle initial and a period, if there is one."Ava M. "
3IF(TRIM(C8)…)Adds the second middle initial and a period, if there is one."Ava M. A. "
4D8Adds the last name."Ava M. A. Reed"
5TRIM( … )Removes extra spaces, like after empty middle names."Ava M. A. Reed"

The &" "& adds a space after the first name. An empty middle name adds nothing.

=TRIM(A8&" "&IF(TRIM(B8)="","",UPPER(LEFT(TRIM(B8),1))&". ")&IF(TRIM(C8)="","",UPPER(LEFT(TRIM(C8),1))&". ")&D8)

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up names with the formula already in.
  2. Use your own names. Paste first names, both middle names and last names into the green columns of the Template tab. Leave a middle name empty when there isn't one.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Only the first letter of each middle name is kept. Put each middle name in its own column.

Route: Get names ready for the letter

Microsoft's help: LEFT function