FormulaCraft

How to normalize phone numbers to a single format in Excel and Google Sheets

Topic:Text manipulation

Heads up: Excel and Google Sheets do this differently.

Excel
=TEXT(VALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"+",""),"(",""),")",""),"-","")," ","")),"+0-000-000-0000")
Google Sheets
=REGEXREPLACE(REGEXREPLACE(A2, "[^\d+]", ""), "^\+?(\d)(\d{3})(\d{3})(\d{4})$", "+$1-$2-$3-$4")

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Place raw phone numbers in A2:A5 (e.g. (555) 123-4567, 555.123.4567, +15551234567).
  2. 2In Google Sheets, enter =REGEXREPLACE(REGEXREPLACE(A2, "[^\d+]", ""), "^\+?(\d)(\d{3})(\d{3})(\d{4})$", "+$1-$2-$3-$4") in B2.
  3. 3The first REGEXREPLACE strips everything except digits and the + sign. The second applies a capture-group pattern to reformat as +1-555-123-4567.
  4. 4In Excel, chain multiple SUBSTITUTE calls to strip +, (, ), -, and spaces, then use TEXT with a custom number format to add the desired separators.
  5. 5Validate: check that all results start with + and are exactly 15 characters for E.164 format, using =LEN(B2)=15 in a helper column.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

What if phone numbers have different country codes?

Adjust the regex capture groups to match your target format. For international E.164 without rewriting, use =REGEXREPLACE(REGEXREPLACE(A2, "[^\d]", ""), "^(\d+)$", "+$1") to just ensure a + prefix on the digit-stripped string.

Why does Excel's TEXT approach sometimes return zeros or wrong numbers?

Phone numbers with a leading 0 or country code lose precision when converted to a numeric VALUE. Keep phone numbers as text throughout — avoid VALUE() and instead build the formatted string with string concatenation and MID/LEFT.

More on Text manipulation

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: