Make a Dear first name greeting

Turn Ava into Dear Ava, for the first line of a letter or email.

What you'll make

In Excel: Ava becomes Dear Ava,.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TRIM(A8)="",""If the name cell is empty, shows nothing.Not used for row 8
2"Dear "Starts with Dear and a space."Dear "
3TRIM(A8)Adds the name, without stray spaces."Dear Ava"
4","Adds a comma at the end."Dear Ava,"
5IF( … )Makes a greeting only when there is a name."Dear Ava,"

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

=IF(TRIM(A8)="","","Dear "&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 each person goes by into the green column of the Template tab. Greetings fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

The greeting uses each name exactly as typed. Check it's the name the person likes to be called.

Route: Get names ready for the letter

Microsoft's help: IF function