Explanation
COUNTIF simply counts the number of times each value appears in the range.
When the count is more than 1, the formula returns TRUE and triggers the rule.
it’s possible for you to extend this idea and make the formula easier to read by usingnamed ranges.