Get a phone number from a tel link
Turn tel:+12015550123;ext=12 into +12015550123, and flag anything else.
Download Excel templateMicrosoft 365
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | LEFT(LOWER(A8),5)="tel:+" | Checks if the cell starts with tel:+, in any capitals. | TRUE |
| 2 | MID(A8,5,999)&";" | Drops tel: and adds a ; at the end. | "+12015550123;ext=12;" |
| 3 | TEXTBEFORE( … ,";") | Keeps the text before the first ;. | "+12015550123" |
| 4 | "Review tel link" | What the cell says for anything else. | Not used for row 8 |
| 5 | IF( … ) | Gives part 3 for a tel:+ link, otherwise part 4. | "+12015550123" |
Parts 2 and 3 work from the inside out. The added ; covers links with no extension. The numbers here are made-up.
=IF(LEFT(LOWER(A8),5)="tel:+",TEXTBEFORE(MID(A8,5,999)&";",";"),"Review tel link")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 links. Paste tel links into the green column of the Template tab. The phone numbers fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
The extension is left out. Keep the original cell if your letter needs the extension too.
Microsoft's help: TEXTBEFORE function
OTHER ROUTES YOU MIGHT LIKE

Read the extension from a tel link
tel:+12015550123;ext=0012 → 0012
Get the template →
Replace a 00 dialing prefix with a plus
0012015550123 → +12015550123
Get the template →
Restore the lost zero in a phone number
2079460123, width 11 → 02079460123
Get the template →
Hide "Phone:" when there's no phone number
(blank) → no "Phone:" line
Take this route →