Insert ZIP+4 grouping into nine-digit text

Turn checked nine-digit text like 021081234 into the ZIP+4 02108-1234.

What you'll make

In Excel: 021081234 becomes 02108-1234.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1LEFT(A8,5)Takes the first five digits, the ZIP."02108"
2&"-"&Adds a hyphen after them."02108-"
3RIGHT(A8,4)Adds the last four digits, the +4."02108-1234"

Read it left to right. The digits stay text, so leading zeros like the 0 in 02108 stay.

=LEFT(A8,5)&"-"&RIGHT(A8,4)

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 nine-digit ZIPs, stored as text, into the green column of the Template tab. The ZIP+4 codes fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Use this only on cells you know hold all nine digits. A five-digit ZIP comes out wrong.

Microsoft's help: LEFT function