How to use data validation to only allow SSN number entered in Excel?
For recording the SSN number of all employees and forcing them to type the SSN number in xxx-xx-xxxx format in a column, you can use the Data Validation function to solve the problem.
Only allow SSN number entered by Data Validation
Only allow SSN number entered by Kutools for Excel
Only allow number entered by Kutools for Excel
To allow SSN number entered only, just do as these:
1. Select the cells or column you want to type SSN number, right click to select Format Cells from the context menu.
2. In the Format Cells dialog, select Special from Categories pane, and choose Social Security Number from right section.
Or you can select Custom in left pane, then type 000-00-0000 in textbox in the right section.
3. Click OK, then click Data > Data Validation.
4. In the Data Validation dialog, under Settings tab, select Custom from Allow section, type this formula
into the textbox of Formula.
5. Click OK. Now when you type SSN number string into the cells, it will be auto formatted as this:
Note:
If number of string are longer than nine characters, it will pop out a warning.
The warning pops out as well while the non-numeric characters entering.
Prevent duplicate values entering in a column in Excel |
In some times, you want to prevent users to enter duplicate values in a column of Excel sheet, but how can you handle it? The Prevent Duplicate utility of Kutools for Excel just need you to click twice time, the job will be done. Click for 30 days free trial! |
![]() |
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. |
If you have installed the handy tool – Kutools for Excel, you can use its Validate Phone Number feature to only allow users enter SSN number in a fixed formatting.
Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. | ||
After free installing Kutools for Excel, please do as below:
1. Select a range or a column as you need, click Kutools > Prevent Typing > Validate Phone Number.
2. In the Phone number dialog, click Add button to create a new format. Then in the Add phone number dialog, give the new format a name in the Name textbox, and type an example of the SSN format you need in the Data case textbox. Lastly, remember to click Generate button.
3. Click OK, a dialog pops out to tell you it is added successfully, click OK to back to the Phone number dialog. Then select the format you have created in last step, then click OK.
4. A dialog pops out to remind you have successfully validated SSN format in the selected cells, click OK to close it.
Now the selected cell only allow entered the SSN format you set, or it pops out a dialog to remind you.
If you just allow number characters entered in a column, you can apply the Prevent Typing utility of Kutools for Excel, which can help you to prevent special character entering or only allow special character entering.
1. Select the cells or column you only allow number entering, click Kutools > Prevent Typing > Prevent Typing.
After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)
2. In the Prevent Typing dialog, check Allow to type in these chars option, and type number 0-9 into the below textbox.
3. Click Ok, there are two reminding dialogs popping out, just click Yes > OK to close them.
![]() |
![]() |
Now the selected column only allow numbers enter, if not, a warning dialog will pop out as below screenshot shown.
Prevent special characters entering
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?
Three methods to validate cells to only accept IP address in Excel
While using Excel, do you know how to set up a column or a range of cells to only accept IP address format (xxx.xxx.xxx.xxx)? This article provides several methods for you to deal with it.
Allow only yes or no entry in Excel
For recording the SSN number of all employees and forcing them to type the SSN number in xxx-xx-xxxx format in a column, you can use the Data Validation function to solve the problem.
Data validation to allow date greater than today or a specific date in Excel
When working in Excel, if you just want to allow the past date, future date or a specific range of date to be entered in a worksheet, how could you solve this task in Excel?.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
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!
