S SB Apr 6, 2004 #1 Does anyone know if there is a formula for count distinct? I can't seem to find anything in the help on it. Thanks.
Does anyone know if there is a formula for count distinct? I can't seem to find anything in the help on it. Thanks.
B brendon Apr 14, 2004 #4 Jason, I try using the formula, but all I get is the #DIV/0!. Am I doing something wrong.
H Harlan Grove Apr 15, 2004 #5 brendon said: Jason, I try using the formula, but all I get is the #DIV/0!. Am I doing something wrong. Click to expand... .... You likely have some blank cells in the range. If so, use either of the following instead. =SUMPRODUCT((A1:A100<>"")/(COUNTIF(A1:A100,A1:A100)+(A1:A100="")) =SUMPRODUCT((1-ISBLANK(A1:A100))/(COUNTIF(A1:A100,A1:A100) +ISBLANK(A1:A100))) The first excludes blank cells and cells evaluating to "". The second excludes only blank cells.
brendon said: Jason, I try using the formula, but all I get is the #DIV/0!. Am I doing something wrong. Click to expand... .... You likely have some blank cells in the range. If so, use either of the following instead. =SUMPRODUCT((A1:A100<>"")/(COUNTIF(A1:A100,A1:A100)+(A1:A100="")) =SUMPRODUCT((1-ISBLANK(A1:A100))/(COUNTIF(A1:A100,A1:A100) +ISBLANK(A1:A100))) The first excludes blank cells and cells evaluating to "". The second excludes only blank cells.