How to Fix Phone Number Formats in a Spreadsheet

To fix inconsistent phone numbers in a spreadsheet, strip every non-digit character, then reapply one display format, usually (555) 123-4567 for US numbers. In Excel that is a nested SUBSTITUTE…

To fix inconsistent phone numbers in a spreadsheet, strip every non-digit character, then reapply one display format, usually (555) 123-4567 for US numbers. In Excel that is a nested SUBSTITUTE formula plus TEXT; in our free cleaning tool it happens automatically with a preview of every change. This guide shows both, plus the edge cases that break the formula approach.

Why phone columns get messy

Phone numbers arrive in a spreadsheet from web forms, CRMs, accounting exports, and human hands, and every source has its own habit. One real customer file can easily contain all of these for the same number:

As enteredWhat it is
555.123.4567Dots
(555) 123 4567Parentheses, no hyphen
555-123-4567Hyphens
5551234567Bare digits
1-555-123-4567Leading country code
+1 (555) 123-4567Full international format

Sorting does not group them, exact-match lookups fail, and any system you import into will either reject the file or store six formats forever.

The Excel formula approach

Step 1, strip the formatting characters:

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

Step 2, reformat the digits. With the stripped value in B2:

=IF(LEN(B2)=10,TEXT(B2,"(000) 000-0000"),IF(AND(LEN(B2)=11,LEFT(B2,1)="1"),"+1 "&TEXT(RIGHT(B2,10),"(000) 000-0000"),A2))

That handles 10-digit numbers and 11-digit numbers with a leading 1, and passes anything else through unchanged, which is the safe behavior.

Where the formula breaks

The faster path for a whole file

Our free data cleaning tool detects phone columns automatically, standardizes US 10-digit and 1-prefixed 11-digit numbers to (555) 123-4567, and leaves anything it cannot confidently parse exactly as it was, never truncating or guessing. Every change appears in a before/after preview with the old value struck through before anything is applied. Files up to 2MB or 2,500 rows, CSV, free, no account. The full rule set is documented in How Cleaning Works.

FAQ

What is the standard format for US phone numbers?

There is no single legal standard, but (555) 123-4567 is the most common US display convention, and E.164 (+15551234567) is the standard for storage and systems. Pick one per use: display format for humans, E.164 if the data feeds software.

How do I keep Excel from turning phone numbers into scientific notation?

Format the column as Text before pasting data, or import via Data > From Text/CSV and set the column type to Text. Once a number displays as 5.55123E+9 the original digits may already be altered.

Can the free tool handle international numbers?

Not yet. It standardizes US formats and deliberately leaves international numbers untouched rather than corrupting them. International support is on the roadmap, driven by the anonymized format telemetry described in How Cleaning Works.

Related guides

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *