Make a Last, F. name label

Turn Ava and Reed into Reed, A. for name labels and short lists.

What you'll make

In Excel: Ava + Reed becomes Reed, A.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TRIM(B8)=""Checks whether the last name is empty.Not empty
2TRIM(B8)The last name, without stray spaces."Reed"
3IF(TRIM(A8)…)Adds a comma and the first initial, if there is one."Reed, A."
4IF( … )Shows nothing when the last name is empty."Reed, A."

UPPER(LEFT(…,1)) keeps one capital letter. An empty first name shows the last name alone.

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

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 and last names into the green columns of the Template tab. Labels fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

A row with no first name shows the last name alone, with no initial. Fill those in if you can.

Route: Get names ready for the letter

Microsoft's help: LEFT function