Read the extension from a ZIP+4

Turn 02108-1234 into the four-digit 1234. A ZIP alone stays blank.

What you'll make

In Excel: 02108-1234 becomes 1234; ZIP alone becomes blank.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1LEN(A8)=10Checks the cell is ten characters, a full ZIP+4.Yes
2RIGHT(A8,4)Keeps the last four characters."1234"
3IF( … )Uses part 2, or stays blank for a ZIP alone."1234"

The result is text, so zeros like the 00 in 0021 stay. No extension never becomes 0000.

=IF(LEN(A8)=10,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 ZIPs or ZIP+4s into the green column of the Template tab. The extensions 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 ZIPs stored as text, like 02108 or 02108-1234. Other ten-character codes aren't checked.

Microsoft's help: RIGHT function