How to format phone numbers in Google Sheets
How To Sheets guides you through formatting phone numbers in Google Sheets: clean inputs, apply display formats, validate data, and handle international numbers with practical, step-by-step techniques.

You will learn how to format phone numbers in Google Sheets to display consistently across your sheet. Start by cleaning inputs to digits, then apply a display format or a formula-based approach, and finally add validation to prevent invalid entries. This guide covers plain-text formatting, custom formats, and international number handling.
Why formatting phone numbers matters
Consistent phone number formatting improves readability, reduces data-entry errors, and simplifies downstream processing like mail merges or contact exports. In business contexts, uniformly formatted numbers prevent failed communications and ensure that data from different sources can be merged without manual cleaning. For the goal of this article, we’ll assume digits are the core data, with separators chosen for readability. You’ll also learn how to preserve leading zeros in some locales and how to handle international numbers that include country codes. Throughout, we’ll reference practical, field-tested methods tailored to students, professionals, and small business owners who rely on Google Sheets for contact management and client lists.
Data preparation: clean and standardize input
Before formatting, normalize the data by removing non-digit characters if necessary. This step ensures that entries like “(555) 123-4567”, “555-123-4567”, and “5551234567” all become a uniform 10-digit string (or an international version if applicable). Use a helper column to store the cleaned string, then work from that normalized source. If some numbers include a leading zero, you may need to preserve it as text or adjust your approach to avoid dropping the zero during numeric conversion.
Method A: Using formulas to display formatted numbers
One common approach is to convert the cleaned digits into a formatted display using concatenation or the TEXT function. For a standard US-style 10-digit number, you can construct: ="("&LEFT(B2,3)&") "&MID(B2,4,3)&"-"&RIGHT(B2,4). This keeps the raw data in a separate column (B) and presents a clean display in column C. You can scale this with ARRAYFORMULA for whole columns, producing a live formatted list as you type.
Method B: Using a custom number format for display
Google Sheets supports custom number formats that can display digits in a desired shape without altering the underlying value. After ensuring the value is a 10-digit number, apply a custom format like "(###) ###-####" via Format > Number > More Formats > Custom number formats. This approach is elegant, fast, and keeps the data numeric for calculations. Note that this method works best if the input is numeric, not text.
Handling international numbers and country codes
International numbers require a flexible format that can incorporate a leading plus sign and country code. A common approach is to store the digits (with or without the country code) and apply a display that shows +CC (AAA) BBB-CCCC. Use conditional logic to detect number length and country codes, then apply a combination of REGEX and concatenation to render the final display. This keeps your sheet adaptable for global contact lists.
Validation and error handling to prevent bad data
To maintain data integrity, add validation rules that enforce the number length and character rules. For example, require exactly 10 digits for domestic numbers or a defined pattern for international numbers. Create a helper column with REGEXMATCH(B2, "^[0-9]+$") and LENGTH(B2)=10 to flag errors. Regular validation reduces manual cleanup and ensures consistent formatting across the dataset.
Practical examples: a before-and-after sample sheet
Imagine a sheet with a column A containing unformatted numbers: 5551234567, (555)123-4567, 555-123-4567, +1 555 123 4567. In column B, apply the cleaning step: =REGEXREPLACE(A2, "[^0-9]", ""). In column C, display: =IF(LEN(B2)=10, "(" & LEFT(B2,3) & ") " & MID(B2,4,3) & "-" & RIGHT(B2,4), B2). You’ll see a consistent result across all variants. Keep a backup of the original data for safety.
Tools & Materials
- Computer with internet access(Google account; access to Google Sheets)
- Sample dataset of unformatted numbers(Contains a mix of formats for testing)
- Google Sheet with two columns(One for raw input, one for formatted display)
- Backup copy(Save original data before formatting)
- Optional: Data validation rules template(Pre-built rules to enforce format)
Steps
Estimated time: 30-45 minutes
- 1
Open your Google Sheet and prepare data
Launch the sheet containing the raw phone numbers. Create a clean working copy in a new tab to avoid overwriting the original data. Identify columns for raw input and formatted display.
Tip: Use a separate helper column for cleaned digits to keep data traceable. - 2
Normalize input to digits only
In a helper column, remove all non-digit characters using REGEXREPLACE. This standardizes the input, making subsequent formatting predictable.
Tip: Test with several variants (spaces, parentheses, +, dashes) to verify the cleaning rule handles all cases. - 3
Choose a formatting approach
Decide whether to build the display with a formula or to apply a custom number format. Formulas provide flexible control; custom formats are fast and keep numbers numeric.
Tip: If you plan to do calculations later, prefer a numeric underlying value with formatting applied. - 4
Apply a display format with a formula
In the output column, combine LEFT, MID, and RIGHT to construct (XXX) XXX-XXXX from the cleaned digits. Example provided above.
Tip: Drag the fill handle to apply to the entire column. - 5
Alternative: use a custom number format
If the input is numeric, go to Format > Number > More Formats > Custom number formats and enter (###) ###-####. This formats in place without altering the numeric value.
Tip: Ensure the source value is numeric; otherwise this method won’t apply. - 6
Set up data validation and test
Add a validation rule to require the expected digit length and digits only. Test by entering diverse numbers and confirming consistent results.
Tip: Include an error message to guide users when invalid data is entered.
FAQ
How do I format a 10-digit number as (123) 456-7890?
Use a formula like =("("&LEFT(B2,3)&") "&MID(B2,4,3)&"-"&RIGHT(B2,4)) after cleaning digits. You can also apply a custom number format if the value is numeric.
Format a 10-digit number by grouping digits into area code, prefix, and line number using a simple formula.
How can I preserve leading zeros?
If numbers start with zero, treat them as text or pad using a formula that preserves the leading zero and does not coerce to numeric.
Preserve leading zeros by treating numbers as text or concatenating strings to enforce the zero.
What about international numbers?
International formats require country codes and potentially a plus sign. Use a combination of REGEXREPLACE and CONCAT to add +CC before the national number.
International numbers need country codes and careful formatting; consider a dedicated column for country code.
Can I apply formatting to an entire column automatically?
Yes, use ARRAYFORMULA with a formatting expression to apply formatting to an entire column, while keeping the underlying data intact.
You can automate formatting for whole columns with ARRAYFORMULA.
What if data isn’t purely numeric?
Filter or clean non-numeric entries first; non-digit characters should be removed before formatting to avoid errors.
Clean input to digits first, then format for consistency.
Watch Video
The Essentials
- Format numbers consistently across sheets
- Choose formula-based or format-based approaches based on needs
- Validate inputs to maintain data quality
- Handle international formats with careful patterning
