Replace a given dialing prefix with a plus
Turn 0012015550123 into +12015550123 with the prefix your list uses. + numbers stay.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | LEFT(A8,1)="+",A8 | Keeps a number that already starts with +. | Not used for row 8 |
| 2 | IF(B8="","Review missing prefix", | Flags a row with no prefix. | Not used for row 8 |
| 3 | IF(LEFT(A8,LEN(B8))=B8, | Checks the number starts with the prefix. | Yes |
| 4 | "+"&MID(A8,LEN(B8)+1,99) | Puts + in place of the prefix. | "+12015550123" |
| 5 | IF( … ) | Tries each check in turn and uses the first that fits. | "+12015550123" |
Any other number says Review dialing prefix. The result is text. The numbers here are made-up.
=IF(LEFT(A8,1)="+",A8,IF(B8="","Review missing prefix",IF(LEFT(A8,LEN(B8))=B8,"+"&MID(A8,LEN(B8)+1,99),"Review dialing prefix")))How to use it
Yellow bar at the top? Click Enable Editing.
- See it work. The Example tab shows 20 made-up examples with the formula already in.
- Use your own numbers. Paste phone numbers and their dialing prefix into the green columns of the Template tab. The + numbers fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Paste numbers and prefixes as text so the leading zeros stay. Take out spaces and dashes first.
Microsoft's help: IF function
OTHER ROUTES YOU MIGHT LIKE

Write a local tel: link with phone context
7042 + example.com → tel:7042;phone-context=example.com
Get the template →
Read national digits after a calling code
+39065550123, code 39 → 065550123
Get the template →
Add an area code to a seven-digit phone
5550123 + 201 → 2015550123
Get the template →
Hide "Phone:" when there's no phone number
(blank) → no "Phone:" line
Take this route →