logo
search
Formatting Issues

Fix Excel Custom Phone Number Formatting Not Working

Partner EditorPartner Editor Oct 7, 2026 869 views

Question details

The user is attempting to apply a custom phone number format, but the formatting does not apply because the data is recognized as text rather than numbers.

How to Fix Excel Phone Number Custom Formatting Not Working
Product
Excel
Device & OS
not provided
Scenario
Formatting a column containing phone numbers to follow a specific custom layout like (###) ###-####.
Observed behavior
The custom format fails to alter the display values, and the phone numbers remain formatted as text.
Before you start

Verify whether your phone numbers contain essential leading zeros or international country codes, as converting them from text to numbers will automatically remove these specific prefixes.

Solution 1Recommended

Remove Special Characters and Convert Text to Numbers

Use the Find and Replace tool alongside Text to Columns to strip text characters and convert the cell formatting into numeric values.

Excel cannot apply numeric custom formats to cells stored as text. Phone numbers often contain parentheses, spaces, or hyphens, causing Excel to treat them as text strings. By removing these characters and forcing a numeric conversion, you allow the custom number formatting to take effect.

1
Remove formatting characters

Press Ctrl + H to open the Find and Replace dialog. Type a parenthesis '(' in the 'Find what' box, leave the 'Replace with' box blank, and click 'Replace All'. Repeat this for the closing parenthesis, spaces, and hyphens.

2
Highlight the target data

Select the entire column or range of cells containing the newly cleaned phone numbers.

3
Convert text to numbers

Navigate to the 'Data' tab on the ribbon and click on 'Text to Columns'. When the wizard opens, immediately click 'Finish' without altering any of the default settings.

4
Apply custom format

Right-click the selected column and choose 'Format Cells'. Go to the 'Number' tab, select 'Custom', type your desired format such as (###) ###-#### into the Type box, and click OK.

Remove Special Characters and Convert Text to Numbers
Preserving Leading Zeros: If your dataset strictly requires leading zeros, you should skip the numeric conversion step. Instead, keep the numbers stored as text and use Excel formulas (like CONCATENATE or TEXT) to manipulate the layout.
Efficient Data Management

Format Phone Numbers Seamlessly with WPS Spreadsheet

WPS Spreadsheet provides robust data management features, allowing you to rapidly clean text data and apply customized number formats with zero hassle.

  1. 1. Open your dataset: Launch WPS Spreadsheet, open your document, and select the column containing the problematic phone numbers.
  2. 2. Clean text characters: Press Ctrl+H to pull up the Find and Replace tool. Strip out any existing hyphens, spaces, or parentheses by replacing them with nothing.
  3. 3. Convert to numbers: Go to the 'Data' tab, click on 'Text to Columns', and simply click 'Finish' in the dialog box to instantly convert the data type to numeric.
  4. 4. Set the custom layout: Press Ctrl+1 to open the Format Cells window, click on 'Custom', and enter your preferred phone number layout like (###) ###-####.
Easily convert text strings to numbers using the intuitive Text to Columns wizard.Fully compatible with Microsoft Excel (.xlsx, .xls) file formats and functions.Advanced custom formatting options for flawless data presentation.Lightweight, fast, and completely free to use for everyday office tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel automatically format my phone numbers as text?

When you type a phone number containing non-numeric characters like a hyphen or parentheses, Excel interprets the entire entry as a text string instead of a mathematical number. This prevents number-based formatting from working.

How can I prevent Excel from removing leading zeros in phone numbers?

To preserve leading zeros, format the blank cells as 'Text' before entering the numbers, or type a single apostrophe (') immediately before the phone number when typing it into the cell.

Can I format phone numbers that already contain hyphens without removing them?

If the numbers are stored as text with hyphens, numeric custom formatting will not apply. You must either use text-manipulation formulas (like LEFT, MID, and RIGHT) to restructure the string or remove the hyphens to convert the data to actual numbers first.