Search Contextures Sites ![]()
Excel Data Validation Examples Criteria
Use data validation to allow specific entries in cells on the worksheet. For example, you can limit the cells to whole numbers, or text of specific length.
Listed below are the different settings that you can allow, with an example of each setting.
Whole Number
If you allow Whole numbers, you can set or exclude a range of numbers, or specify a minimum number or maximum number.
To set the allowed values, you can
- Type the values into the Data Validation dialog box, OR
- Refer to cells on the worksheet, OR
- Use formulas to set the values. For example, in the screen shot shown here, the MAX and MIN functions are used to set the minimum and maximum values.
Decimal
If you allow Decimals, you can set or exclude a range of numbers, or specify a minimum number or maximum number.
- Type values into the Data Validation dialog box, OR
- Refer to cells on the worksheet, OR
- Use formulas to set the values
List
You can create a drop down list of items to select. See the examples here: Data Validation
Date
If you allow Dates, you can set or exclude a range of numbers, or specify a minimum number or maximum number.
- Type the dates into the Data Validation dialog box, OR
- Refer to cells that contain dates on the worksheet, OR
- Use formulas to set the dates
In this example, the TODAY function sets the current date as the Start date, and 7 days from the current date is the End date:
=TIME(HOUR(NOW()),MINUTE(NOW()),SECOND(NOW()))
Excel Tutorials - Data Validation
Contextures Inc., Copyright ©2010
All rights reserved.