Put a name and role on separate lines

Turn Ava Reed and Treasurer into a two-line label for badges and letters.

What you'll make

In Excel: Ava Reed + Treasurer becomes Ava Reed ¶ Treasurer.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TRIM(A8)The full name, tidied up. ¶ marks a line break."Ava Reed"
2IF(TRIM(B8)…)Adds a line break and the role, if there is one."Ava Reed¶Treasurer"

The second line only appears when there is a role.

=TRIM(A8)&IF(TRIM(B8)="","",CHAR(10)&TRIM(B8))

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 full names and roles into the green columns of the Template tab. Leave the role empty when there isn't one.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Turn on Wrap Text where you paste the results, or the name and role show on one line.

Route: Get names ready for the letter

Microsoft's help: CHAR function