Build a Canadian address line

Join a municipality, province and postal code: OTTAWA ON K1A 0B1.

What you'll make

In Excel: Ottawa + ON + K1A 0B1 becomes OTTAWA ON  K1A 0B1.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1UPPER(TRIM(A8))The municipality in capitals, without stray spaces."OTTAWA"
2&" "&Adds one space."OTTAWA "
3UPPER(TRIM(B8))The province code in capitals, without stray spaces."OTTAWA ON"
4&" "&Adds two spaces before the postal code."OTTAWA ON "
5UPPER(C8)Adds the postal code in capitals."OTTAWA ON K1A 0B1"

Read it left to right. The postal code keeps its own middle space.

=UPPER(TRIM(A8))&" "&UPPER(TRIM(B8))&" "&UPPER(C8)

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. Use your own addresses. Paste municipalities, two-letter province codes and postal codes into the green columns of the Template tab. The lines fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

The formula doesn't check that a postal code belongs to its province. Give new addresses a quick look.

Microsoft's help: UPPER function