Make an attention line from a name

Turn Ava Reed into Attn: Ava Reed for business letters and envelopes.

What you'll make

In Excel: Ava Reed becomes Attn: Ava Reed.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TRIM(A8)=""Checks whether the name cell is empty.Not empty
2"Attn: "Starts with Attn, a colon and a space."Attn: "
3TRIM(A8)Adds the name, without stray spaces."Attn: Ava Reed"
4IF( … )Shows nothing when the name cell is empty."Attn: Ava Reed"

Read it left to right. An empty name cell stays empty, with no stray Attn.

=IF(TRIM(A8)="","","Attn: "&TRIM(A8))

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 the name of each person the letter is for into the green column of the Template tab. Attention lines fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

The line uses each name exactly as typed. Check it's the right person at each company.

Route: Get names ready for the letter

Microsoft's help: IF function