Custom Data Validation rules in Microsoft Excel

Custom Data Validation Rules in Microsoft Excel

This post describes the Custom Data Validation rules in Excel and the usage of custom features and formulas in Data Validation.

Custom Data Validation rules in Microsoft Excel

By using the custom data validation feature in Microsoft Excel, you can create a validation rule and validate cells with your own criteria. This custom option in Data validation makes the rules customizable and easier to get data from the user.

  1. Select one or more cells to validate.
  2. Select Data Tab -> Data Tools -> Data Validation.
  3. A dialog box opens, select Custom in the allow section, and enter your data validation formula in the Formula box.
  4. Click OK.
Custom Data Validation rules in Microsoft Excel

You can also add input message and error alert which displays when the user hovers over the validated cell or enters invalid data, respectively.

Here are some examples of custom data validation formulas :

Excel data validation to allow numbers only: =ISNUMBER(A2)

Custom Data Validation rules in Microsoft Excel

Excel data validation to allow text only: =ISTEXT(A2)

Custom Data Validation rules in Microsoft Excel

Allow text beginning with specific characters: =COUNTIF(A2,”aa-*”)

Custom Data Validation rules in Microsoft Excel

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn how to Find Blank cells in excel so that you can remove or delete the blank cells form...
In this article, you’ll learn what is a Gauge Chart in Microsoft Excel. Also, you will learn how to add...
Microsoft Excel provides a shortcut for the users to move columns in excel using two different ways – using Shift...