Counting unique values with multiple criteria

Tubbies001

New Member
Joined
May 29, 2018
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Dear Forum Members,

I would like to build a formula that would count Consultant IDs (only once, as they repeat) of consultants with Start Month "04" and the kit "S" (so in my below example the result is 1).
Consultant IDStart monthKit
100731

<tbody>
</tbody>
03S
10073204F
10073204F
10073204F
10073502J
10073502J
10073704S
10073704S

<tbody>
</tbody>

Thank you very much for any tips!
Margo
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Welcome to the Board.

If the IDs are numeric, try the E2 formula, otherwise the E3 formula:

ABCDE
1Consultant IDStart monthKit
21007313S1
31007324F1
41007324F
51007324F
61007352J
71007352J
81007374S
91007374S

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Array Formulas
CellFormula
E2{=SUM(SIGN(FREQUENCY(IF(B2:B9=4,IF(C2:C9="S",A2:A9)),A2:A9)))}
E3{=SUM(SIGN(FREQUENCY(IF(B2:B9=4,IF(C2:C9="S",MATCH(A2:A9,A2:A9,0))),ROW(A2:A9)-ROW(A2)+1)))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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