Use the first available name

Turn blank, Ava Reed and A. Reed into Ava Reed when some columns are empty.

What you'll make

In Excel: blank + Ava Reed + A. Reed becomes Ava Reed.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TRIM(A8)<>""True when the preferred name is filled in.TRUE
2TRIM(A8)The preferred name, without stray spaces."Avie Reed"
3IF(TRIM(B8)…)Otherwise the full name, or else the short name.Not used for row 8
4IF( … )Shows the first name that isn't empty."Avie Reed"

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

=IF(TRIM(A8)<>"",TRIM(A8),IF(TRIM(B8)<>"",TRIM(B8),TRIM(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 preferred, full and short names into the green columns of the Template tab. Leave a cell empty when you don't have that name.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

It doesn't compare the three names. If they belong to different people, it won't notice. Check rows that look odd.

Route: Get names ready for the letter

Microsoft's help: IF function