Try array-entering a formula like this:=SUM(IF(COUNTIF(A1:A10,A1:A10)=0,"",1/COUNTIF(A1:A10,A1:A10)))