ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Text
  3. How to Format Phone Numbers in Excel

How to Format Phone Numbers in Excel

By ExcelReady Team·Updated November 2, 2026·6 min read

The short answer

To format phone numbers in Excel, select the cells, press Ctrl+1 (Mac: ⌘1), choose Custom and type a format such as (000) 000-0000. This only works on real numbers. If the phones are text with dots or dashes, clean them with SUBSTITUTE, then use =TEXT(--SUBSTITUTE(A2,".",""),"(000) 000-0000") to rebuild them.

Key takeaways

  • A custom number format such as (000) 000-0000 changes how a number looks without changing the number.
  • Number formats do nothing to phone numbers stored as text. Clean and convert them first.
  • SUBSTITUTE removes dots, dashes, brackets and spaces, one character type at a time.
  • TEXT(number,"(000) 000-0000") returns the formatted phone number as text in a new column.
  • Numbers that start with 0 or +, or are longer than 15 digits, are best stored as text.
On this page+
  1. Number or text? Check this first
  2. Format phone numbers with a custom number format
  3. Clean phone numbers stored as text with SUBSTITUTE
  4. Rebuild the phone number with the TEXT function
  5. Remove a country code before formatting
  6. Format phone numbers with LEFT, MID and RIGHT
  7. Phone numbers with leading zeros or a plus sign
  8. Practise it

To format phone numbers in Excel, apply a custom number format such as (000) 000-0000 to cells that hold plain 10-digit numbers. If the phone numbers came in as text, with dots, dashes or spaces, clean them with SUBSTITUTE first and rebuild them with the TEXT function. This guide is for anyone tidying a contact list, CRM export or sign-up sheet, and it covers both cases plus leading zeros and country codes.

Number or text? Check this first#

Before you format phone numbers in Excel, find out what kind of value is in the cell, because the method depends on it:

  • A number, such as 2025550147, can be formatted with a custom number format. The cell keeps the number; only the display changes.
  • Text, such as 202.555.0147 or (202) 555-0147, ignores number formats completely. You need formulas to clean and rebuild it.

Click a cell and look at it. Numbers line up on the right of the cell by default and text on the left. For a firm answer, type =ISNUMBER(A2) in a spare cell: TRUE means a number, FALSE means text. The guide to numbers stored as text explains why imports often produce text.

All examples use these fictional numbers (the 555-01xx range is reserved for examples):

A
1Raw phone
2202.555.0147
3(312) 555-0182
41-415-555-0123
56175550190

Format phone numbers with a custom number format#

When the cells hold plain numbers, like A5, a custom format adds the brackets and dash for you:

  1. Select the cells.
  2. Press Ctrl+1 (Mac: ⌘1) to open Format Cells.
  3. On the Number tab, choose Custom.
  4. In the Type box, enter (000) 000-0000 and click OK.

The number 6175550190 now shows as (617) 555-0190. Each 0 is a digit placeholder: it shows a digit, or a 0 if there aren't enough digits. The brackets, space and dash are shown as typed. Some other useful formats:

Custom format6175550190 shows as
000-000-0000617-555-0190
000.000.0000617.555.0190
+1 (000) 000-0000+1 (617) 555-0190

Excel also has a ready-made option: in Format Cells, choose Special > Phone Number (shown for some locales, such as English (United States)). It shows 7-digit numbers as ###-#### and 10-digit numbers as (###) ###-####.

Because the value is still a number, sorting and lookups keep working. The guide to custom number formats in Excel covers the codes in more depth.

Clean phone numbers stored as text with SUBSTITUTE#

Text phone numbers need the extra characters removed before you can format them. SUBSTITUTE replaces one piece of text with another, and replacing a character with "" (empty text) deletes it:

Excel formula
=SUBSTITUTE(A2,".","")

For A2 (202.555.0147) the result is 2025550147, still as text. When a number has several kinds of characters, nest one SUBSTITUTE inside another, one for each character:

Excel formula
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A3,"(",""),")",""),"-","")," ","")

For A3, (312) 555-0182, Excel removes the open bracket, then the close bracket, then the dash, then the space, giving 3125550182. Read the formula from the inside out. The SUBSTITUTE function guide and the guide to removing characters in Excel have more patterns, and the cleaning text lesson lets you practise them.

For a one-off clean-up, Find and Replace (Windows: Ctrl+H; Mac: ⌃H) does the same job: find -, leave Replace with empty, click Replace All, then repeat for each character.

Rebuild the phone number with the TEXT function#

Once you have only digits, the TEXT function applies a number format inside a formula and returns text. It needs a number, so put -- (two minus signs) in front of the cleaned text to convert it:

Excel formula
=TEXT(--SUBSTITUTE(A2,".",""),"(000) 000-0000")

The result for A2 is (202) 555-0147. The -- turns the text "2025550147" into the number 2025550147. VALUE does the same thing if you find it easier to read: =TEXT(VALUE(SUBSTITUTE(A2,".","")),"(000) 000-0000").

TEXT gives you a new column of consistently formatted phone numbers that you can copy into another system. Because the result is text, it looks the same everywhere, even in a CSV file. The TEXT function guide and the guide to TEXT function format codes list other codes. The TEXT and VALUE lesson practises both functions together.

Remove a country code before formatting#

Some lists mix 10-digit numbers with ones that include the US country code 1, such as A4: 1-415-555-0123. After removing the dashes you get 11 digits. RIGHT keeps only the last 10:

Excel formula
=TEXT(--RIGHT(SUBSTITUTE(A4,"-",""),10),"(000) 000-0000")

The result is (415) 555-0123. RIGHT(text, 10) returns the last 10 characters, which drops the leading 1. To check that every cleaned number has the right length, use LEN: =LEN(SUBSTITUTE(A2,".","")) should return 10. Anything else needs a closer look.

Format phone numbers with LEFT, MID and RIGHT#

If you prefer to see each part, you can cut the digits into pieces and join them with &. With 10 digits of text in C2 (for example, the cleaned 2025550147):

Excel formula
="("&LEFT(C2,3)&") "&MID(C2,4,3)&"-"&RIGHT(C2,4)
  • LEFT(C2,3) is the area code: 202.
  • MID(C2,4,3) takes 3 characters starting at the 4th: 555.
  • RIGHT(C2,4) is the last four digits: 0147.

The result is (202) 555-0147. This works on text directly, with no conversion, and is easy to adapt for other layouts. The LEFT, RIGHT, MID and LEN lesson covers these functions step by step.

Phone numbers with leading zeros or a plus sign#

Many countries write phone numbers with a leading 0, such as the UK mobile 07700 900123. If you type it as a number, Excel drops the 0 and shows 7700900123. You have three options:

  1. Store it as text. Format the column as Text before typing, or start the entry with an apostrophe: '07700 900123. The apostrophe doesn't show in the cell.
  2. Use a custom format with enough zeros. 00000 000000 shows the number 7700900123 as 07700 900123, because each 0 placeholder forces a digit.
  3. Store international numbers with + as text. +44 7700 900123 can't be a number, so keep it as text.

Also keep long numbers as text. Excel stores only 15 significant digits, so a phone number with an extension or a long international number can lose its last digits if it is entered as a number. The guide to keeping leading zeros in Excel covers this in detail.

Practise it#

Try the exercise on this page: one formula strips the dots and rebuilds the phone number with TEXT. Then practise TEXT and VALUE in a live spreadsheet, where you type each formula and it checks it instantly, and try the cleaning text lesson for messy imported data.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

The phone numbers in column A were exported with dots. In B2, remove the dots from A2 with SUBSTITUTE, turn the result into a number with --, and format it as (000) 000-0000 with TEXT.

fx
ABCD
1
Raw phone
Formatted
2
202.555.0147
3
312.555.0182
4
415.555.0123
5
617.555.0190
6
7
8

Tip: Work from the inside out: SUBSTITUTE(A2,".","") removes the dots, -- makes it a number, and TEXT(...,"(000) 000-0000") adds the brackets and dash.

Practise this in a lesson

LessonTEXT and VALUE: numbers to text and backFormat dates and dollar amounts inside sentences with TEXT, and turn digits stored as text into real numbers with VALUE.LessonCleaning messy textFix stray spaces, random capitals and inconsistent separators in imported data with TRIM, PROPER, UPPER, LOWER and SUBSTITUTE.LessonLEFT, RIGHT, MID and LENSplit product codes and IDs into their parts by taking characters from the start, end or middle of the text.Function guideTEXTFormat dates, prices and percentages inside labels with Excel's TEXT function. Format codes, common mistakes and a live practice exercise.Function guideSUBSTITUTESwap or strip characters with Excel's SUBSTITUTE: clean phone numbers, change one occurrence and count characters with LEN. Practice it live.

Frequently asked questions

How do I format a phone number in Excel with dashes?

+

Select the cells, press Ctrl+1 (Mac: ⌘1), choose Custom and type 000-000-0000. The number 2025550147 then shows as 202-555-0147. This works only if the cells hold numbers, not text.

Why won't my phone number format apply?

+

The phone numbers are probably stored as text, often because they contain dots, dashes or spaces. Number formats don't change text. Remove the extra characters with SUBSTITUTE and convert the result to a number with -- or VALUE.

How do I keep the leading zero in a phone number?

+

Either format the column as Text before you type, start the entry with an apostrophe, or use a custom format with the right number of zeros, such as 00000 000000 for an 11-digit number that starts with 0.

How do I remove dashes and brackets from phone numbers?

+

Nest SUBSTITUTE once for each character: =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"(",""),")",""),"-","")," ",""). You can also use Find and Replace with an empty Replace box.

Is there a built-in phone number format in Excel?

+

Yes. In Format Cells, choose Special and then Phone Number. It is available for some locales, such as English (United States), and formats 10-digit numbers as (###) ###-####.

Sources

  • Create a custom number format - Microsoft Support
  • TEXT function - Microsoft Support
  • SUBSTITUTE function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. Number or text? Check this first
  2. Format phone numbers with a custom number format
  3. Clean phone numbers stored as text with SUBSTITUTE
  4. Rebuild the phone number with the TEXT function
  5. Remove a country code before formatting
  6. Format phone numbers with LEFT, MID and RIGHT
  7. Phone numbers with leading zeros or a plus sign
  8. Practise it

Keep reading

Productivity· 5 min read

Custom Number Formats in Excel

A custom number format changes how a number looks without changing its value. Select the cells, press Ctrl+1 (Mac: ⌘1), choose Custom and type a code in the Type box, such as 00000 for leading zeros, #,##0,"K" for thousands or 0 "kg" for units. Formulas still use the real number underneath.

Text· 6 min read

How to Remove Characters From Text in Excel

To remove a specific character, use SUBSTITUTE to replace it with nothing: =SUBSTITUTE(A2,"-","") strips every dash. To remove characters by position, use RIGHT(A2,LEN(A2)-3) to drop the first three, or LEFT(A2,LEN(A2)-2) to drop the last two. To remove everything after a character, use TEXTBEFORE or LEFT with FIND.

Text· 5 min read

How to Add or Keep Leading Zeros in Excel

To add leading zeros in Excel, use =TEXT(A2,"00000"), which pads a number to five digits, so 742 becomes 00742. To keep the cell a number, apply a custom number format of 00000 instead. To type an ID with zeros and keep them, format the cells as Text first or start the entry with an apostrophe, like '00742.

More on text

  • Get Initials From a Name in Excel
  • LEFT, RIGHT and MID in Excel: Pull Out Part of a Cell
  • Line Breaks in Excel: In a Cell and in a Formula
  • MID Function in Excel: Pull Text From the Middle
  • Remove Duplicates Within a Cell in Excel
  • Remove the First or Last Characters in Excel
All text articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free