Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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 number entered by Prevent Typing good idea3


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 60 days free trial!
doc force percentage 10
 
Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days.

Only allow SSN number entered by Data Validation

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.
doc only allow ssn format 1

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.
doc only allow ssn format 2

3. Click OK, then click Data > Data Validation.
doc only allow ssn format 4

4. In the Data Validation dialog, under Settings tab, select Custom from Allow section, type this formula =AND(LEFT(F1,1)>="0",LEN(F1)<10,ISNUMBER(F1)) into the textbox of Formula.
doc only allow ssn format 5

5. Click OK. Now when you type SSN number string into the cells, it will be auto formatted as this:
doc only allow ssn format 6

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.


Only allow number entered by Prevent Typing

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.
doc only allow ssn format 7

Kutools for Excel, with more than 200 handy functions, makes your jobs easier. 

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.
doc only allow ssn format 8

3. Click Ok, there are two reminding dialogs popping out, just click Yes > OK to close them.

doc only allow ssn format 9 doc only allow ssn format 9

Now the selected column only allow numbers enter, if not, a warning dialog will pop out as below screenshot shown.
doc only allow ssn format 11



Excel Productivity Tools

Kutools for Excel - The Best Office Productivity Tool

  • Brings 300 powerful advanced features to Excel, enable you to do smarter, faster and better.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Office Tab - brings tabbed interface to Office, 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!
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.

Be the first to comment.