Make an attention line from a name
Turn Ava Reed into Attn: Ava Reed for business letters and envelopes.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | TRIM(A8)="" | Checks whether the name cell is empty. | Not empty |
| 2 | "Attn: " | Starts with Attn, a colon and a space. | "Attn: " |
| 3 | TRIM(A8) | Adds the name, without stray spaces. | "Attn: Ava Reed" |
| 4 | IF( … ) | 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.
- See it work. The Example tab shows 20 made-up names with the formula already in.
- 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.
- 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
OTHER ROUTES YOU MIGHT LIKE

Make a care-of line from a name
Ava Reed → c/o Ava Reed
Get the template →
Add several credentials after a name
Ava Reed + CPA + MBA → Ava Reed, CPA, MBA
Get the template →
Add a short ID to tell names apart
Ava Reed + 27 → Ava Reed (0027)
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →