Preferred first name when available

Turn Ava, Avie and Reed into Avie Reed for friendly letters and name tags.

What you'll make

In Excel: Ava + Avie + Reed becomes Avie Reed.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1IF(TRIM(B8)…)Uses the preferred name, or the first name if empty."Avie"
2&" "&Adds a space."Avie "
3C8Adds the last name."Avie Reed"
4TRIM( … )Removes extra spaces."Avie Reed"

Read it left to right. A preferred name with only spaces counts as empty.

=TRIM(IF(TRIM(B8)="",A8,B8)&" "&C8)

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, preferred and last names into the green columns of the Template tab. Leave the preferred 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

It never makes up a nickname. Fill in preferred names only for people who asked to be called that.

Route: Get names ready for the letter

Microsoft's help: IF function