Join a country code and a phone number
Turn 1 and 2015550123 into +12015550123, ready for dialing abroad.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | OR(A8="",B8="") | Checks if the code or the number is empty. | No, both are filled |
| 2 | "Review country/number pair" | Shown when the code or the number is missing. | Not used for row 8 |
| 3 | "+"&A8 | A plus sign, then the country code. | "+1" |
| 4 | &B8 | Adds the number right after the code. | "+12015550123" |
| 5 | IF( … ) | Uses part 2 if part 1 finds a gap, else parts 3 and 4. | "+12015550123" |
Read it left to right. The numbers here are made-up.
=IF(OR(A8="",B8=""),"Review country/number pair","+"&A8&B8)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 country codes and phone numbers into the green columns of the Template tab. The full 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 without dashes, a + or the 0 dialed only at home. The formula joins them as they are.
Microsoft's help: Using IF with AND, OR and NOT
OTHER ROUTES YOU MIGHT LIKE

Mask all but the last four phone digits
2015550123 → ******0123
Get the template →
Create a phone-and-fax block
2015550123 + 2015550142 → Phone: 2015550123¶Fax: 2015550142
Get the template →
Write a tel: address with an extension
+12015550123 and 0012 → tel:+12015550123;ext=0012
Get the template →
Hide "Phone:" when there's no phone number
(blank) → no "Phone:" line
Take this route →