Read the ZIP from a nine-digit number

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

What you'll make

In Excel: 21081234 becomes text 02108.

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
2TEXT( … ,"000000000")Puts the lost zero back, making nine digits."021081234"
3LEFT( … ,5)Keeps the first five digits, the ZIP."02108"

Each bracket wraps the one above it, so Excel works from the inside out. The result is text, so the leading zero stays.

=LEFT(TEXT(A8,"000000000"),5)

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 five-digit ZIPs 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 held all nine digits. A plain five-digit ZIP comes out wrong.

Microsoft's help: TEXT function