
- MS Excel Basics
- Excel - Home
- Excel - Getting Started
- Excel - Explore Window
- Excel - Backstage
- Excel - Entering Values
- Excel - Move Around
- Excel - Save Workbook
- Excel - Create Worksheet
- Excel - Copy Worksheet
- Excel - Hiding Worksheet
- Excel - Delete Worksheet
- Excel - Close Workbook
- Excel - Open Workbook
- Excel - Context Help
- Editing Worksheet
- Excel - Insert Data
- Excel - Select Data
- Excel - Delete Data
- Excel - Move Data
- Excel - Rows & Columns
- Excel - Copy & Paste
- Excel - Find & Replace
- Excel - Spell Check
- Excel - Zoom In-Out
- Excel - Special Symbols
- Excel - Insert Comments
- Excel - Add Text Box
- Excel - Undo Changes
- Formatting Cells
- Excel - Setting Cell Type
- Excel - Setting Fonts
- Excel - Text Decoration
- Excel - Rotate Cells
- Excel - Setting Colors
- Excel - Text Alignments
- Excel - Merge & Wrap
- Excel - Borders and Shades
- Excel - Apply Formatting
- Formatting Worksheets
- Excel - Sheet Options
- Excel - Adjust Margins
- Excel - Page Orientation
- Excel - Header and Footer
- Excel - Insert Page Breaks
- Excel - Set Background
- Excel - Freeze Panes
- Excel - Conditional Format
- Working with Formula
- Excel - Creating Formulas
- Excel - Copying Formulas
- Excel - Formula Reference
- Excel - Using Functions
- Excel - Builtin Functions
- Advanced Operations
- Excel - Data Filtering
- Excel - Data Sorting
- Excel - Using Ranges
- Excel - Data Validation
- Excel - Using Styles
- Excel - Using Themes
- Excel - Using Templates
- Excel - Using Macros
- Excel - Adding Graphics
- Excel - Cross Referencing
- Excel - Printing Worksheets
- Excel - Email Workbooks
- Excel- Translate Worksheet
- Excel - Workbook Security
- Excel - Data Tables
- Excel - Pivot Tables
- Excel - Simple Charts
- Excel - Pivot Charts
- Excel - Keyboard Shortcuts
- MS Excel Resources
- Excel - Quick Guide
- Excel - Useful Resources
- Excel - Discussion
How to Apply Data Validation to Force Phone Number Format in Excel?
Let us assume we have a situation where we want to allow only numbers for a range of cells in Excel and everyone is entering different data other than a phone number. We can make the cells only allow phone numbers. This process has two steps. The first step is to format the cells as numbers, and the second step is to use the concept of data validation to restrict the data to only being a ten-digit number. Read this tutorial to learn how you can apply data validation to force phone number format in Excel in a simple way.
Applying Data Validation to Force Phone Number Format in Excel
Here we will first format the cells, then allow only number formatting using the conditional formatting, and then edit the message. Let's see a simple process to apply data validation to force phone numbers to be formatted in Excel.
Step 1
Consider the possibility of having an Excel sheet with data similar to the data shown in the screenshots below.
Our first step is to format the cells as numbers.
Select the data where you want to allow only numbers, then right click and select format cells from the menu box. A new pop-up window will be opened as shown in the below image.
Again, in the new pop-up, click on "Custom," then enter the type as "###-###-####," then click "OK" to close the pop-up.
Step 2
Select the data once more, click on Data, and then select Data validation; a new pop-up window will appear.
Select allow to custom in the new pop-up and enter the formula: =AND(ISNUMBER(B2),LEN(B2)=10) in the formula box and press "OK" to finish the process.
Step 3
If you enter any other data other than a ten-digit phone number, then an error message will be displayed, as shown in the below image.
Conclusion
In this tutorial, we used a simple example to demonstrate how we can apply data validation to force phone number format in Excel to highlight a particular set of data.
- Related Articles
- How to Apply Data Validation to Allow Only Numbers in Excel?
- How to Apply Data Validation to Multiple Sheets at Once in Excel?
- How to Convert the Phone Number Format to Digits in Excel?
- How to Apply Multiple Data Validation in One Cell in an Excel Worksheet?
- How to Apply Custom Number Format in an Excel Chart?
- Excel data validation: Add, use, copy and remove data validation in Excel
- Phone Number validation using Java Regular Expressions
- How to Always Show an Arrow of Data Validation List in Excel?
- Email & Phone Validation in Swift
- How to add country/area code to a phone number list in Excel?
- How to Convert Number Format between European and US in Excel?
- How to Convert Text Datetime Format to Real Datetime Format in Excel?
- How to Apply Spell Check in Excel Textbox?
- How to get phone number in android?
- How to Apply Same Formula to Multiple Cells in Excel?
