If both counts are positive (i.e.

non-zero), the AND function will return TRUE and trigger the conditional format.

AND returns TRUEonly if all the conditions are met.

Excel formula: Highlight duplicate values

If any conditions are not met, the AND function returns FALSE.

Excel formula: Highlight duplicate rows

Excel formula: Range contains duplicates

Excel COUNTIF function

Excel AND function

Article image

Article image

Article image

Article image