I've got a large table that is already organized using filters etc. I'd like to add a summary underneath certain columns that contain the number of distinct values in that column.
There's no function =COUNTDISTINCT(A2:A100)
so what can I do instead? (Excel 2003)
I can't exactly use answers to this similar question because I don't want to modify the table or the filtering. I need an addition in the worksheet, not a modification.
Answer
=SUMPRODUCT((A2:A100 <> "")/COUNTIF(A2:A100,A2:A100 & ""))
will do it without having to use an array formula.
Comments
Post a Comment