Make a Dear Title Last Name greeting
Turn Dr. and Reed into Dear Dr. Reed, for the first line of a letter.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | TRIM(B8)="" | Checks whether the last name is empty. | Not empty |
| 2 | "Dear " | Starts with Dear and a space. | "Dear " |
| 3 | TRIM(A8&" "&B8) | Adds the title and last name, without stray spaces. | "Dear Dr. Reed" |
| 4 | "," | Adds a comma at the end. | "Dear Dr. Reed," |
| 5 | IF( … ) | Shows nothing when the last name is empty. | "Dear Dr. Reed," |
Read it left to right. A blank title leaves no extra space before the last name.
=IF(TRIM(B8)="","","Dear "&TRIM(A8&" "&B8)&",")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 titles and last names into the green columns of the Template tab. Leave the title empty when there isn't one.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Titles are used exactly as typed, and none are guessed. Check each one is the title the person uses.
Route: Get names ready for the letter
Microsoft's help: IF function
OTHER ROUTES YOU MIGHT LIKE

Combine a contact name and company
Ava Reed + Acme → Ava Reed — Acme
Get the template →
Put a name and role on separate lines
Ava Reed + Treasurer → Ava Reed ¶ Treasurer
Get the template →
Make an attention line from a name
Ava Reed → Attn: Ava Reed
Get the template →
Fix "Dear ," when a first name is blank
(blank) → Dear colleague,
Take this route →