Apr 11 2023 07:11 AM
Hello all,
I need your help, please.
In a column, if a value occurs 5 times, I want to mark the last value in red. There should be no criterion. All values that occur more than 5 times, the last one should be marked red.
Apr 11 2023 09:20 AM
Presuming the values are in A2:A31, for example:
Conditional formatting formula:
=LET(counter,COUNTIF($A$2:$A2,$A2),total,COUNTIF($A$2:$A$31,$A2),AND(counter>=5,counter=total))