Count with multiple criteria excluding duplciates

ringws

New Member
Joined
Apr 14, 2017
Messages
3
Hello,

I am struggling trying to get a count formula to count a number of transactions (with duplicate numbers) only once within a date range in a table containing over 60 months. In the example below, I need to count the number of transactions (which has duplicates and I need them to be counted as one) by the period/yr. i.e. how many transactions for 201107?

I cant do a pivot table or the remove duplicates function, I need a formula. Thank you.

Example Table:
Transactions Period/Yr
4964542948 201109
4966894994201107
4930321980201107
4973587935201101
4934688031201107
4964542948201109
4964542948201109
4970536953201107
4966894993201107
4966894993201107
4964542948201109
4973587935201101
4964542948201109
4925479054201107
4978588949201112
4966894993201107
4966894993201107

<tbody>
</tbody><colgroup><col><col></colgroup>
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Welcome to the forum.

Assuming your transactions are numeric, try:

ABCDE
1Transactions Period/Yr Period/YrUnique Count
249645429482011092011076
34966894994201107
44930321980201107
54973587935201101
64934688031201107
74964542948201109
84964542948201109
94970536953201107
104966894993201107
114966894993201107
124964542948201109
134973587935201101
144964542948201109
154925479054201107
164978588949201112
174966894993201107
184966894993201107

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

Array Formulas
CellFormula
E2{=SUM(IF(FREQUENCY(IF(B2:B18=D2,A2:A18),A2:A18),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
Thanks Eric, that did work like a charm! I should have asked hours ago! Thank you for your help. I had not been trying the {} trick.
 
Upvote 0

Forum statistics

Threads
1,215,453
Messages
6,124,930
Members
449,195
Latest member
Stevenciu

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