Important limitation
It is important to understand that data validation can be easily defeated.
This Input Message is completely optional.
The Error Alert Tab controls how validation is enforced.
The table below summarizes behavior for each error alert option.
Whole Number- only whole numbers are allowed.
Once the whole number option is selected, other options become available to further limit input.
For example, you’ve got the option to require a whole number between 1 and 10.
Decimal- works like the whole number option, but allows decimal values.
List- only values from a predefined list are allowed.
The values are presented to the user as a dropdown menu control.
Allowed values can be hardcoded directly into the prefs tab, or specified as a range on the worksheet.
Date- only dates are allowed.
Time- only times are allowed.
Text length- validates input based on number of characters or digits.
For example, you could require code that contains 5 digits.
Custom- validates user input using a custom formula.
In other words, you’re able to write your own formula to validate input.
Custom formulas greatly extend the options for data validation.
In practice, this setting seems to affect only the command “circle invalid data”.
When enabled, blank cells are not circled even if they fail validation.
For example, with sizes (i.e.
small, medium, etc.)
it’s possible for you to also usenamed rangesto specify values.
If they enter a value like “apple” in A1, ISNUMBER returns FALSE and data validation fails.
Troubleshooting formulas
Excel ignores data validation formulas that return errors.
The concept is exactly the same.
Data validation formula examples
The possibilities for data validation custom formulas are virtually unlimited.
The two circled values return FALSE with this formula.
pop in the keyboard shortcut Control + G, then hit the Special button.