Distinct Count based on given criteria

harinsh

Active Member
Joined
Feb 7, 2012
Messages
273
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.



<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>
[TD="class: xl63, width: 64"]No[/TD]
[TD="class: xl63, width: 64"]%[/TD]
[TD="class: xl65, width: 102"]Distinct Count[/TD]
[TD="class: xl65, width: 93"]Final Results[/TD]

[TD="class: xl63"]1111[/TD]
[TD="class: xl63"]60[/TD]
[TD="class: xl64"] 0.50[/TD]
[TD="class: xl64"] 1.00[/TD]

[TD="class: xl63"]2222[/TD]
[TD="class: xl63"]40[/TD]
[TD="class: xl64"] 0.50[/TD]
[TD="class: xl64"] 1.00[/TD]

[TD="class: xl63"]1111[/TD]
[TD="class: xl63"]50[/TD]
[TD="class: xl64"] 0.50[/TD]
[TD="class: xl64"] 1.00[/TD]

[TD="class: xl63"]3333[/TD]
[TD="class: xl63"]10[/TD]
[TD="class: xl64"] 1.00[/TD]
[TD="class: xl64"] 1.00[/TD]

[TD="class: xl63"]4444[/TD]
[TD="class: xl63"]50[/TD]
[TD="class: xl64"] 1.00[/TD]
[TD="class: xl64"] 1.00[/TD]

[TD="class: xl63"]2222[/TD]
[TD="class: xl63"]60[/TD]
[TD="class: xl64"] 0.50[/TD]
[TD="class: xl64"] 1.00[/TD]

[TD="class: xl63"]5555[/TD]
[TD="class: xl63"]50[/TD]
[TD="class: xl64"] 0.50[/TD]
[TD="class: xl64"] 0.50[/TD]

[TD="class: xl63"]5555[/TD]
[TD="class: xl63"]50[/TD]
[TD="class: xl64"] 0.50[/TD]
[TD="class: xl64"] 0.50[/TD]

[TD="class: xl63"]6666[/TD]
[TD="class: xl63"]10[/TD]
[TD="class: xl64"] 0.33[/TD]
[TD="class: xl64"] 1.00[/TD]

[TD="class: xl63"]6666[/TD]
[TD="class: xl63"]60[/TD]
[TD="class: xl64"] 0.33[/TD]
[TD="class: xl64"] 1.00[/TD]

[TD="class: xl63"]6666[/TD]
[TD="class: xl63"]50[/TD]
[TD="class: xl64"] 0.33[/TD]
[TD="class: xl64"] 1.00[/TD]

</tbody>
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Why SUM?
Use COUNTIFS instead of COUNTIF
 
Last edited:
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,223,882
Messages
6,175,165
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top