Write a local tel: link with phone context
Turn 7042 and example.com into tel:7042;phone-context=example.com.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | OR(A8="",B8="") | Checks if the number or the context is empty. | No, both are filled |
| 2 | "Review local phone/context pair" | Shown when the number or the context is missing. | Not used for row 8 |
| 3 | "tel:"&A8 | Starts the link with tel: and the local number. | "tel:7042" |
| 4 | &";phone-context="&B8 | Adds the label and the context after it. | "tel:7042;phone-cont…" |
| 5 | IF( … ) | Uses part 2 if part 1 finds a gap, else parts 3 and 4. | "tel:7042;phone-cont…" |
Read it left to right. The numbers and contexts here are made-up.
=IF(OR(A8="",B8=""),"Review local phone/context pair","tel:"&A8&";phone-context="&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 local numbers and the phone context your source gives into the green columns of the Template tab. The tel links fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Use the phone context your phone system names for each number. The formula won't add a country code.
Microsoft's help: Using IF with AND, OR and NOT
OTHER ROUTES YOU MIGHT LIKE

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 →
Drop a national prefix when one is given
02079460123 + 0 → 2079460123
Get the template →
Hide "Phone:" when there's no phone number
(blank) → no "Phone:" line
Take this route →