Build a U.S. city-state-ZIP line

Turn Boston, MA and 02108 into BOSTON MA 02108 for envelopes and labels.

What you'll make

In Excel: Boston + MA + 02108 becomes BOSTON MA  02108.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1UPPER(TRIM(A8))The city in capitals, without stray spaces."BOSTON"
2&" "&Adds one space."BOSTON "
3UPPER(TRIM(B8))The state in capitals, without stray spaces."BOSTON MA"
4&" "&Adds two spaces before the ZIP."BOSTON MA "
5C8Adds the ZIP code exactly as typed."BOSTON MA 02108"

Read it left to right. The ZIP is kept as text, so a leading zero stays.

=UPPER(TRIM(A8))&" "&UPPER(TRIM(B8))&" "&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 cities, two-letter states and ZIP 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 ZIP belongs to its city. Give new addresses a quick look.

Microsoft's help: UPPER function