SOLVED

Count number of occurrences only once

Brass Contributor

Good afternoon

 

I have a column where values are repeated many times. I need to count the occurrences of each value in another column, so I was thinking to use COUNTIF, but if I extend COUNTIF over the entire column, the occurrences of each value will be counted each time the value appears. I need each value's occurrences to be counted only once, like shown in the example screenshot

Ber93_0-1645011885830.png

 

2 Replies
best response confirmed by Ber93 (Brass Contributor)
Solution

@Ber93 

=IF(COUNTIF($CL$1:CL2,CL2)>1,"",COUNTIF($CL$1:$CL$1000,CL2))

Maybe with this formula.

Works perfectly! Thank you
1 best response

Accepted Solutions
best response confirmed by Ber93 (Brass Contributor)
Solution

@Ber93 

=IF(COUNTIF($CL$1:CL2,CL2)>1,"",COUNTIF($CL$1:$CL$1000,CL2))

Maybe with this formula.

View solution in original post