How to apply data validation to force phone number format in Excel?

May be, there are various phone number formats can be used when typing into the Excel workbook. But, how could you only allow one phone number format to be entered in a column of worksheet? For example, I just want the phone number as this format 123-456-7890 to be allowed entering in a worksheet.

Apply data validation to force phone number format with Data Validation feature

Apply data validation to force phone number format with a useful feature


Apply data validation to force phone number format with Data Validation feature

To only allow specific phone number format to be entered, you can solve it with the following steps:

First, you can format the cells to the phone number format as you need.

1. Select the list of cells that you want to only type with the specific phone number format, and then right click, choose Format Cells form the context menu, see screenshot:

2. In the Format Cells dialog box, under the Number tab, click Custom from the left Category pane, and then enter the phone number format as you need into the Type text box, in this example, I will use this ###-###-#### format, see screenshot:

3. And then click OK to close the dialog.

Second, you can apply the Data Validation feature to validate the phone number.

4. After formatting the cells, please click Data > Data Validation > Data Validation, see screenshot:

5. In the Data Validation dialog box, under the Settings tab, select Custom from the Allow drop down, and then enter this formula: =AND(ISNUMBER(A2),LEN(A2)=10) into the Formula text box, see screenshot:

Note: In the above formula, A2 is the first cell of the column that you want to validate the phone number.

6. And then click OK button, now, when you enter a 10 digits number, it will be converted to the specific phone number format automatically as you need, see screenshot:

7. But if the number is shorter or longer than 10 digits, a warning message box will appear to remind you, see screenshot:


Apply data validation to force phone number format with a useful feature

If you have Kutools for Excel, with its Validate Phone Number feature, you can specify the phone number formatting that you just want to enter in a worksheet. Click to download Kutools for Excel!

Tips: To apply this Validate Phone Number feature, firstly, you should download the Kutools for Excel, and then apply the feature quickly and easily.

After installing Kutools for Excel, please do as this:

1. Select the range of cells that you want to only specific phone number allow to be entered,then, click Kutools > Prevent Typing > Validate Phone Number, see screenshot:

2. In the Phone number dialog box, select the specific phone number format or you can set your own formatting as you need, see screenshot:

3. Then, click OK button to close the dialog box, now, only the phone number with the formatting can be entered, if the phone number is not the formatting you specified, a warning message will popped out to remind you, see screenshot:

Click to Download Kutools for Excel and free trial Now!


More relative data validation articles:

  • Validate Email Addresses In A Column Of Worksheet
  • As we all known, a valid email address is composed of three parts, the user name, the "at symbol" (@), and the domain. Sometimes, you just allow others to enter only the email address format text into a specific column of worksheet. Is it possible to achieve this task in Excel?
  • Apply Multiple Data Validation In One Cell In Excel
  • In Excel worksheet, applying one data validation to a cell may be common for us, but, have you ever tried to use multiple data validation into one cell? This article, I will talk about some different examples for solving this task in Excel.
  • Data Validation The Date Of Current Year In Excel Worksheet
  • In Excel, the Data Validation is a useful feature for us, with it, we can prevent duplicate cells, allow the specific date to be entered, and so on. This article, I will talk about how to allow only the dates of the current year to be entered by using the Data Validation function in Excel worksheet.

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    JHUN · 4 months ago
    what if the the entry begin in 0

    • To post as a guest, your comment is unpublished.
      skyyang · 3 months ago
      Hi, JHUN,
      To solve your problem, you can apply the Validate Phone Number of Kutools for Excel, with this feature, you can set various phone numbers as you need. You just need to download and install the Kutools first.

      Please try, thank you!
  • To post as a guest, your comment is unpublished.
    Rach · 9 months ago
    Hi, I know it could be different but how can i validate a country code in front of the phone number for different countries? Eg, ISO code shows 65 for Singapore and phone number format must be 65 6123 4567 or 82 for Korea and phone number format is 82 1234 4567. Without any symbols. Appreciate your help.
    • To post as a guest, your comment is unpublished.
      skyyang · 9 months ago
      Hello, Rach,
      To solve your problem, you just need to use this ## #### #### format in the Format Cells dialog box in step 2. And then follow the above other steps one by one. At last, when you enter a 10 digits number, it will be converted to the phone number format you need automatically.

      Please try, hope it can help you!
  • To post as a guest, your comment is unpublished.
    mish · 3 years ago
    Hi. I tried this for my data validation. but how come it didn't work on numbers that starts with zero? eg. 012-345-6789
    • To post as a guest, your comment is unpublished.
      a · 2 years ago
      I know it has been 6 months, but here is the answer : The cell is setup to deal with numbers of lenght 10, but a number cannot start with ''0'' (ex: 01 is still 1).


      The cell and formulas used should refer to a string instead and this would fix the problem, but would allow people to have letters and you most likely don't want that.