Display a ZIP+4 from a nine-digit number

Turn a checked ZIP+4 that lost its zero, like 21081234, into 02108-1234.

What you'll make

In Excel: 21081234 becomes 02108-1234.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8The ZIP+4 as a number, with its zero lost.21081234
2"00000-0000"The pattern: nine digits with a hyphen."00000-0000"
3TEXT( … )Adds front zeros, then the hyphen after five."02108-1234"

The result is text, so Excel keeps the leading zero.

=TEXT(A8,"00000-0000")

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 ZIP+4 numbers 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 numbers you know hold all nine digits. A plain five-digit ZIP comes out wrong.

Microsoft's help: TEXT function