Forum Discussion
Dennis Depoorter
Nov 02, 2018Brass Contributor
Count unique values in a endless column
Hi All, I'm stuck :) I like to count the amount of unique values in a column. So far no problem with the following formula: ={SUMPRODUCT(1/COUNTIF(A2:A2733,A2:A2733))} This gives me the ...
- Nov 02, 2018
Yes, COUNTIF could be quite slow on big range. FREQUENCY shall be faster
=SUM(IF(FREQUENCY(IF(A2:A35000<>"",MATCH(A2:A35000,A2:A35000,0)),ROW(A2:A35000)-ROW($A$2)+1),1))
Above is array formula (Ctrl+Shift+Enter)
SergeiBaklan
Nov 02, 2018Diamond Contributor
Hi Dennis,
Better to use tables, with ranges formula could be
=SUMPRODUCT((A2:A2733<>"")/COUNTIF(A2:A2733,A2:A2733&""))