Explanation

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

If the count is less than 2, the expression returns TRUE and validation succeeds.

If not, the expression returns FALSE and validation fails.

Excel formula: Data validation allow numbers only

COUNTIF can be used to count…

Excel formula: Data validation allow text only

Excel formula: Data validation require unique number

Excel COUNTIF function