Explanation

Data validation rules are triggered when a user adds or changes a cell value.

The COUNTIF function simply counts occurrences of the value in the list.

As long as the count is zero, the entry will pass validation.

Excel formula: Data validation exists in list

If the count is not zero (i.e.

the user entered a value from the list) validation will fail.

COUNTIF can be used to count…

Excel formula: Data validation allow text only

Excel formula: Data validation only dates between

Excel COUNTIF function