How to Apply data validation to cells in Microsoft Excel

- Advertisement -

You can use data validation to restrict the type of data or the values that users enter into a cell. One of the most common data validation uses is to create a drop-down list.

Before the start, do have a look on “What’s new in Excel 2019 for Windows

To Apply data validation to cells in Microsoft Excel

1. Select the cell(s) you want to create a rule for.

2. Select Data >Data Validation.

How to Apply data validation to cells in Microsoft Excel

3. On the Settings tab, under Allow, select an option:

  • The whole Number – to restrict the cell to accept only whole numbers
  • Decimal – to restrict the cell to accept only decimal numbers
  • List – to pick data from the drop-down list
  • Date – to restrict the cell to accept the only date
  • Time – to restrict the cell to accept only time
  • Text Length – to restrict the length of the text
  • Custom – for custom formula.

4. Under Data, select a condition:

  • between
  • not between
  • equal to
  • not equal to
  • greater than
  • less than
  • greater than or equal to
  • less than or equal to

5. On the Settings tab, under Allow, select an option

Read Also: Useful Excel Keyboard Shortcuts and Function Keys for Windows

6. Set the other required values, based on what you chose for Allow and Data. For example, if you select between, then select the Minimum: and Maximum: values for the cell(s).

7. Select the Ignore blank checkbox if you want to ignore blank spaces.

8. If you want to add a Title and message for your rule, select the Input Message tab, and then type a title and input message.

9. Select the Show input message when the cell has selected the checkbox to display the message when the user selects or hovers over the selected cell(s).

10. Select OK.

Now, if the user tries to enter a value that is not valid, a pop-up appears with the message, “This value doesn’t match the data validation restrictions for this cell.”

In the example worksheet, following data validation are defined

WorksheetData Validation Type
Whole numberLimit entries to whole numbers
DecimalLimit entries to decimal (percentage) values
DepartmentsLimit selections to list choices
Cost centres tableTable for Cost centre list source
Cost centre budgetLimit selections to Cost centre list choices
DateLimit entries to dates within a range
TimeLimit entries between a time frame
Text lengthLimit entries to a certain number of characters
HR BudgetLimit entries to a certain maximum amount
ProductsRequire entries to meet certain text guidelines
Age verificationLimit entries below a certain age
Custom valuesLimit entries to unique values only (no repeated entries)
E-MailRequire entries to contain the @ symbol
Click here to Download the Excel file of the above examples
If you have any doubt, feel free to contact.

Read Also:

- Related Articles -
Pardeep Patelhttps://pardeeppatel.com/
Hi!, I am Pardeep Patel, an Indian passport holder, Traveler, Blogger, Story Writer. I completed my M-Tech (Computer Science) in 2016. I love to travel, eat different foods from various cuisines, experience different cultures, make new friends and meet other.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related

How to Freeze a Row in Excel: Step-by-Step Guide for Easy Spreadsheet Navigation

In the vast world of Excel, mastering the art...

10 Essential Excel Formulas Every Office Pro Should Know

When it comes to Excel, mastering essential formulas can...

Converting PDF to Excel: A Step-by-Step Tutorial Without Software

Data exists in various sources, formats, and types. The...

How ChatGPT Can Be Useful for Excel Users

Excel is a powerful spreadsheet program used by millions...