Remove a US- prefix from a ZIP

Turn US-02108 into 02108, and flag any other country prefix.

What you'll make

In Excel: US-02108 becomes 02108; CA-K1A 0B1 becomes Review country prefix.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1LEFT(UPPER(A8),3)="US-"Checks the cell starts with US-, in any case.Yes
2MID(A8,4,10)Keeps up to ten characters after US-."02108"
3"Review country prefix"What the cell says for any other start.Not used for row 8
4IF( … )Uses part 2 for US-, otherwise part 3."02108"

The result is text, so leading zeros like the 0 in 02108 stay.

=IF(LEFT(UPPER(A8),3)="US-",MID(A8,4,10),"Review country prefix")

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 with a US- prefix into the green column of the Template tab. The 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 a list that puts US- in front of each ZIP. It never guesses a country from the digits.

Microsoft's help: MID function