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


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 · 1 months ago
    what if the the entry begin in 0