Skip to main content

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 Excelgood idea3

Only allow number entered by Kutools for Excel good idea3


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.


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

Only allow SSN number entered by Kutools for Excel

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

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

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

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

4. A dialog pops out to remind you have successfully validated SSN format in the selected cells, click OK to close it.
doc only allow ssn 6

Now the selected cell only allow entered the SSN format you set, or it pops out a dialog to remind you.
doc only allow ssn 7


Only allow number entered by Kutools for Excel

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 8

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


Other Operations (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?

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

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

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...

Description


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!
Comments (1)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
what if the the entry begin in 0
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations