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.
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…