Put two household names in A to Z order

Turn Noah Park and Ava Reed into Ava Reed & Noah Park for one envelope.

What you'll make

In Excel: Noah Park + Ava Reed becomes Ava Reed & Noah Park.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TRIM(A8)<=TRIM(B8)Checks whether name 1 comes before name 2, A to Z.Yes
2TRIM(A8)&" & "…If so, keeps this order and joins them with &."Ava Reed & Noah Park"
3TRIM(B8)&" & "…If not, puts name 2 first.Not used for row 8
4IF( … )Picks the right order for the row."Ava Reed & Noah Park"

Sorting ignores capitals and extra spaces. Two identical names keep their order.

=IF(TRIM(A8)<=TRIM(B8),TRIM(A8)&" & "&TRIM(B8),TRIM(B8)&" & "&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 each person's full name into the two green columns of the Template tab.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

The order goes by first name, not last name. Check each pair lives together.

Route: Get names ready for the letter

Microsoft's help: IF function