Count Unique Criteria Based on Criteria in One Column

Elissa1004

New Member
Joined
Sep 10, 2012
Messages
6
I searched the other forums on counting unique criteria, but I was unable to locate an answer that fit what I am trying to do.

Here is my data:

Column A B C
Smith, Susie Operations Yes
Brown, Charlie Accounting Yes
Grass, Green Admin No
Smith, Susie Acounting Yes
Smith, Susie Operations No
Brown, Charlie Accounting Yes
Brown, Charlie Accounting No
Smith, Susie Operations Yes

I am trying to count when column C says "yes" and column A and B match, but only once. For example, in the scenario above Smith, Susie would be counted 2 times even though she is listed 4 times. She would be counted once for "yes" and "operations" and once for "yes" and "accounting". Charlie Brown would be counted 1 time and Grass, Green would not be counted at all because column C does not say yes.

I appreciate any help available! Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I searched the other forums on counting unique criteria, but I was unable to locate an answer that fit what I am trying to do.

Here is my data:

Column A B C
Smith, Susie Operations Yes
Brown, Charlie Accounting Yes
Grass, Green Admin No
Smith, Susie Acounting Yes
Smith, Susie Operations No
Brown, Charlie Accounting Yes
Brown, Charlie Accounting No
Smith, Susie Operations Yes

I am trying to count when column C says "yes" and column A and B match, but only once. For example, in the scenario above Smith, Susie would be counted 2 times even though she is listed 4 times. She would be counted once for "yes" and "operations" and once for "yes" and "accounting". Charlie Brown would be counted 1 time and Grass, Green would not be counted at all because column C does not say yes.

I appreciate any help available! Thanks
Try this...

Book1
ABC
2Brown, CharlieAccountingYes
3Brown, CharlieAccountingYes
4Brown, CharlieAccountingNo
5Grass, GreenAdminNo
6Smith, SusieOperationsYes
7Smith, SusieAcountingYes
8Smith, SusieOperationsNo
9Smith, SusieOperationsYes
10___
11Smith, Susie2_
Sheet1

This array formula** entered in B11:

=SUM(IF(FREQUENCY(IF(C2:C9="yes",IF(A2:A9=A11,MATCH(A2:A9&B2:B9,A2:A9&B2:B9,0))),ROW(C2:C9)-ROW(C2)+1),1))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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