NEWExcel AI Agents: use Copilot and Claude in Excel, and prove every number is right. Excel AI Agents course. See the course →

How to Validate Phone Numbers in Excel (Custom Format and Data Validation)

Grab Your Free Workbook Now! 📥

 

Follow step-by-step and boost your learning.

It’s practical, easy, and totally free. Get started today!

 

🔔 SUBSCRIBE if you’d like more tips and tutorials like this

 

We respect your privacy. Unsubscribe at any time.

Watch: phone number validation in 9 minutes

Prefer reading? The same steps are written out below the video.

Step-by-step

A phone number column should only accept exactly 10 digits and display them as (123) 456-7890. A custom number format handles the display; data validation rejects bad entries. You need both.

1. Add a custom format

Select the phone column, right-click > Format Cells > Custom and enter:

(###) ###-####

The # is a digit placeholder. An alternative is (000) 000-0000, where 0 shows a zero when there aren’t enough digits.

2. See why a format isn’t enough

Both formats work for a 10-digit number, but neither stops a problem entry: one containing a letter, fewer than 10 digits or more than 10. The format accepts the entry and simply doesn’t apply.

3. Add data validation

Select the first phone cell (C3), go to Data > Data Validation, set Allow to Custom and enter:

=AND(ISNUMBER(C3),LEN(C3)=10)

ISNUMBER checks the entry is a number (no letters). LEN checks it has exactly 10 characters. AND requires both; if either fails, Excel rejects the entry.

4. Test it

Type 1234567890: it’s accepted and displays as (123) 456-7890. Type a234567890, 12345678 or 12345678901: Excel shows an error and asks you to retry.

5. Use a table so it spreads

If the list is an Excel table, both the format and the validation copy to new rows automatically. Nothing can stop someone typing the wrong digits, but these two features catch most input errors.

Go further

My Excel Tips & Shortcuts: 100+ Powerful Hacks course collects a hundred time-saving techniques like this one.

Delete Thousands of Numbers Instantly in Excel! #excel #shorts

Andreas Exadaktylos May 23, 2026 18:09

Your Excel Charts Are Wrong | Here's Why & How to Fix It

Andreas Exadaktylos May 9, 2026 16:21

Master the Excel FILTER Function in 30 Seconds 📊 #Excel

Andreas Exadaktylos April 27, 2026 16:53

Build a Budget in Excel in 10 Minutes — and See If You're Actually Broke

Andreas Exadaktylos April 19, 2026 16:13

The Excel Button You’ve NEVER Used 🤫 #exceltips

Andreas Exadaktylos April 17, 2026 14:00

STOP scrolling manually in Excel! 🛑

Andreas Exadaktylos April 3, 2026 17:04

WATCHING ON YOUTUBE?

The full courses go further

11 step-by-step courses on Excel, Power BI, Python and AI, all on Udemy with lifetime access.