Blog
Prospecting

How to Format Phone Numbers in Excel (Any Country)

Format phone numbers in Excel: the built-in format, custom codes, the leading zero, stripping dashes and adding country codes. Formulas included.

Sales Util7 min read

Here’s how to format phone numbers in Excel without losing digits. If the numbers are going into a CRM or dialer, store them as text in E.164 format (like +447700900123) using a formula. If you just want them to look nice on screen, use a custom number format like (000) 000-0000. Excel’s built-in Phone Number format only handles US-style numbers, so for every other country you’ll need custom codes or formulas.

Below are recipes by problem, each with a formula you can copy and a before and after.

Why formatting phone numbers in Excel goes wrong

Excel thinks a phone number is a number. It isn’t. It’s a string of digits that happens to look like one. So Excel “helps” in three annoying ways:

  • It drops the leading zero. Type 07700 900123 and you get 7700900123. Excel sees no reason to keep a zero in front of a number.
  • It turns long numbers into scientific notation. Type 447700900123 and you may see something like 4.48E+11. The digits are still there, but the display is useless.
  • It only keeps 15 digits. Microsoft’s specifications and limits page lists number precision as 15 digits. Anything past that turns into zeros.

And one more: if you type a number starting with +, Excel may treat it as a formula. The + disappears, or you get an error.

Microsoft’s guide to keeping leading zeros and large numbers covers all of this. The short version: for phone numbers, text is your friend.

Method 1: the built-in Phone Number format

This is the quick fix for US numbers.

  1. Select the cells.
  2. Press Ctrl+1 (or Cmd+1 on a Mac) to open Format Cells.
  3. Pick Special, then Phone Number.
Before After
2015550123 (201) 555-0123

Two catches. Microsoft’s page on special number formats says the Phone Number option is only there when the Location (Language) is set to English (United States). And it only changes how the number looks. The cell still holds 2015550123.

Method 2: custom number formats

Custom formats let you show any country’s style. Select the cells, press Ctrl+1, pick Custom, and type a code in the Type box. Each 0 is a digit placeholder, and anything in quotes shows as written.

Country Cell holds Custom format code Shows
US 2015550123 (000) 000-0000 (201) 555-0123
US, 7 or 10 digits 5550123 [<=9999999]###-####;(###) ###-#### 555-0123
UK mobile 7700900123 00000 000000 07700 900123
India mobile 9876543210 "+91 "00000 00000 +91 98765 43210
Any, as E.164 447700900123 "+"0 +447700900123

Notice the UK row. The cell holds 7700900123 with no zero, and the format puts the zero back on screen. Handy for display.

But the same warning applies. A custom format is makeup. When you export to CSV or import into a CRM, the underlying number goes, not what you see. So for anything that leaves Excel, use the formulas below.

Method 3: keep the leading zero

Three ways, depending on when you catch it.

Before you type or paste: select the column, press Ctrl+1, choose Text. Now 07700 900123 stays exactly as typed. Microsoft notes this won’t fix numbers that are already in the sheet.

For one cell: type an apostrophe first, like '07700 900123. The apostrophe doesn’t show. It just tells Excel “this is text.”

When importing a CSV: use Data → From Text/CSV, click Transform Data, and change the phone column’s type to Text before you load it. Excel never gets the chance to strip anything.

There’s also a setting for it. Microsoft’s leading zeros page says Excel for Microsoft 365 and Excel 2024 have Automatic Data Conversions options, which can stop Excel removing leading zeros and converting long numbers to scientific notation.

Already lost the zeros? If you’re converting to international format anyway, that’s fine. The zero is the part E.164 drops. More on that in Method 5.

Method 4: strip spaces, dashes and brackets

A typical lead list has numbers written five different ways. Before you can format them, get them down to just digits.

This formula removes (0), spaces, dashes, brackets, dots and plus signs:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"(0)","")," ",""),"-",""),"(",""),")",""),".",""),"+","")

Yes, it’s long. But it’s copy-paste, and it works in every Excel version.

Before (A2) After
(201) 555-0123 2015550123
201.555.0123 2015550123
+44 (0)20 7946 0000 442079460000
0044 20 7946 0000 00442079460000

The (0) goes first on purpose. Without it, +44 (0)20 becomes 44020, with one zero too many.

If you have Excel for Microsoft 365, there’s a shorter way. Microsoft’s REGEXREPLACE page lists it for Excel for Microsoft 365 on Windows and Mac:

=REGEXREPLACE(SUBSTITUTE(A2,"(0)",""),"[^0-9]","")

[^0-9] means “anything that isn’t a digit.” Replace it with nothing, and only digits are left. If you get a #NAME? error, your version doesn’t have it yet. Use the SUBSTITUTE version.

Method 5: add the country code (E.164)

Now turn clean digits (in column B) into E.164: a +, the country code, then the number without its leading 0. Our guide to the international phone number format explains the rule and has a 20-country table.

US and Canada. Numbers might have 10 digits, or 11 with a leading 1:

=IF(LEN(B2)=11,"+"&B2,"+1"&B2)

2015550123 → +12015550123. 12015550123 → +12015550123.

UK (or any country with a 0 trunk prefix). Drop the 0 if it’s there, then add the code:

="+44"&IF(LEFT(B2,1)="0",MID(B2,2,20),B2)

07700900123 → +447700900123. And if Excel already ate the zero, 7700900123 → +447700900123 too. Same result.

India. Swap the code:

="+91"&IF(LEFT(B2,1)="0",MID(B2,2,20),B2)

9876543210 → +919876543210.

The result is text, so it won’t turn into scientific notation and the + stays put.

When one column has numbers from many countries

This is where single-country formulas fall apart. A trade show list might have US, UK, Indian and Spanish numbers mixed together, some with a + and some without.

The fix is two helper columns:

  • C: country code (1, 44, 91, 34…). Fill it from the lead’s country column with a lookup, or by hand.
  • D: trunk prefix to drop. “1” for US and Canada, “0” for most countries, blank for countries with none, like Spain and Italy.

With clean digits in B, this formula handles all of it:

=IF(LEFT(TRIM(A2),1)="+","+"&B2,IF(LEFT(B2,2)="00","+"&MID(B2,3,20),"+"&C2&IF(AND(D2<>"",LEFT(B2,LEN(D2))=D2),MID(B2,LEN(D2)+1,20),B2)))

In plain words: if the original already had a +, keep its code. If it starts with 00, swap that for a +. Otherwise add the country code and drop the trunk prefix.

Original (A) Code (C) Drop (D) Result
(201) 555-0123 1 1 +12015550123
1-201-555-0123 1 1 +12015550123
+44 (0)20 7946 0000 44 0 +442079460000
07700 900123 44 0 +447700900123
0044 20 7946 0000 44 0 +442079460000
098765 43210 91 0 +919876543210
06 1234 5678 39 (blank) +390612345678
612 345 678 34 (blank) +34612345678

The Italy row keeps its 0, which is correct. Italian landlines keep the 0 in international format.

What this formula can’t do: guess the country when a number has no + and you don’t know where the lead is. And it doesn’t handle Argentina’s mobile rules (drop the 15, add a 9). For those, check by hand.

Google Sheets differences

Most of this works the same in Google Sheets, with a few changes:

  • No Special phone format. Use Format → Number → Custom number format, and the same codes from Method 2.
  • Plain text is under Format → Number → Plain text. The apostrophe trick works too.
  • REGEXREPLACE works in Sheets too, but Google’s REGEXREPLACE help says it only works on text, not numbers. So wrap the cell in TO_TEXT:
=REGEXREPLACE(TO_TEXT(SUBSTITUTE(A2,"(0)","")),"[^0-9]","")
  • Sheets may convert +44… into a plain number when you type it, dropping the +. Format the column as Plain text first.

The SUBSTITUTE, IF, LEFT and MID formulas above work unchanged.

Before you import into a CRM

A quick checklist before the upload:

  1. Phone column is text, not a number with a custom format.
  2. Every number starts with + and a country code.
  3. No spaces, dashes or brackets in the stored value.
  4. Extensions in their own column, not stuck onto the number.
  5. Duplicates removed, since the same person often shows up twice with the number written two ways.

If the formulas feel like a lot for one list, Phone Number Formatter does the same job without them. Paste the column, set a default country for numbers without a +, and copy back the E.164 column or download the full table as CSV. It recognises 45+ countries and flags numbers that don’t look valid.

For the rest of the list, Lead List Cleaner merges duplicates, fixes name capitals and drops broken emails, all in your browser.

Either way, once your numbers are in E.164, they’ll dial, dedupe and import the same way every time. Which means you can stop fighting Excel and get back to calling people.

Keep reading

All posts