Add a separator after a set digit

Your source says where the break goes: 021081234 becomes 02108-1234.

What you'll make

In Excel: 021081234 + 5 + - becomes 02108-1234.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1LEFT(A8,B8)Takes the digits before the break, here 5."02108"
2&C8&Adds the separator from column C."02108-"
3MID(A8,B8+1,99)Adds the rest of the digits after the break."02108-1234"

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

=LEFT(A8,B8)&C8&MID(A8,B8+1,99)

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 the postal digits, the break position and the separator into the green columns of the Template tab. The postal 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 the break and separator your source gives for each country. The formula doesn't check them.

Microsoft's help: LEFT function