Distinct Count based on given criteria

harinsh

Active Member
Joined
Feb 7, 2012
Messages
259
Hello,

I am looking some help in getting distinct count by criteria. For example if you refer the below table I brought the distrinct count by using formala {=Sum(1/Countif(A:A,A2))} however, in additon to this need another conditional criteria. If given % different for no then it should consider as 1 count and if more than 1 then it should go for 1/count.

I have mentioned the final require results. can anyone will help on this requirement.


No%Distinct CountFinal Results
111160 0.50 1.00
222240 0.50 1.00
111150 0.50 1.00
333310 1.00 1.00
444450 1.00 1.00
222260 0.50 1.00
555550 0.50 0.50
555550 0.50 0.50
666610 0.33 1.00
666660 0.33 1.00
666650 0.33 1.00

<colgroup><col style="width:48pt" width="64" span="2"> <col style="mso-width-source:userset;mso-width-alt:3730;width:77pt" width="102"> <col style="mso-width-source:userset;mso-width-alt:3401;width:70pt" width="93"> </colgroup><tbody>
</tbody>
 

SpillerBD

Well-known Member
Joined
Jul 2, 2014
Messages
2,706
Your Counting the uniques. And then SUMing the uniques. That seems redundant. But the redundancy doesn't show itself because the ARRAY part is evaluated before the SUM function is evoked, so it is only SUMing one value.
 

Forum statistics

Threads
1,085,798
Messages
5,385,960
Members
401,977
Latest member
AdanRamos

Some videos you may like

This Week's Hot Topics

Top