COUNTIFS with array help

kenderweasel

New Member
Joined
Feb 17, 2017
Messages
40
Hi,

I am trying to create a formula that will count the number of unique IDs associated with an interaction date where each ID can have multiple interactions per date. Any ideas on how to do this with a single formula in a table?

CustIDInteraction 1Interaction 2Interaction 3Interaction 4
18671831724834215503/10/2018NULLNULLNULL
18671832371504890204/10/2018NULLNULLNULL
18671833436387542204/10/201804/10/201804/10/2018NULL
18671833568587115907/10/2018NULLNULLNULL
18671833880060451804/10/201804/10/2018NULLNULL
18671833933859126405/10/2018NULLNULLNULL
18671835045588832804/10/2018NULLNULLNULL
18671835053086189003/10/2018NULLNULLNULL
18671835074778724503/10/201805/10/201805/10/201805/10/2018
18671835098561872804/10/2018NULLNULLNULL
18671835191184616607/10/201807/10/201807/10/2018NULL
<colgroup><col width="142" style="width: 107pt; mso-width-source: userset; mso-width-alt: 5193;"> <col width="111" style="width: 83pt; mso-width-source: userset; mso-width-alt: 4059;" span="4"> <tbody> </tbody>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
A
B
C
D
E
F
G
H
I
J
K
L
M
1
CustIDInteraction 1Interaction 2Interaction 3Interaction 4COUNTInteraction 1Interaction 2Interaction 3Interaction 4
2
186718317248342000​
3/10/2018​
NULLNULLNULL
2​
3/10/2018​
NULLNULLNULL
3
186718323715048000​
4/10/2018​
NULLNULLNULL
3​
4/10/2018​
NULLNULLNULL
4
186718334363875000​
4/10/2018​
4/10/2018​
4/10/2018​
NULL
1​
4/10/2018​
4/10/2018​
4/10/2018​
NULL
5
186718335685871000​
7/10/2018​
NULLNULLNULL
1​
7/10/2018​
NULLNULLNULL
6
186718338800604000​
4/10/2018​
4/10/2018​
NULLNULL
1​
4/10/2018​
4/10/2018​
NULLNULL
7
186718339338591000​
5/10/2018​
NULLNULLNULL
1​
5/10/2018​
NULLNULLNULL
8
186718350455888000​
4/10/2018​
NULLNULLNULL
1​
3/10/2018​
5/10/2018​
5/10/2018​
5/10/2018​
9
186718350530861000​
3/10/2018​
NULLNULLNULL
1​
7/10/2018​
7/10/2018​
7/10/2018​
NULL
10
186718350747787000​
3/10/2018​
5/10/2018​
5/10/2018​
5/10/2018​
11
186718350985618000​
4/10/2018​
NULLNULLNULL
12
186718351911846000​
7/10/2018​
7/10/2018​
7/10/2018​
NULL

<tbody>
</tbody>


H2=IF(ROWS($H$2:H2)<=ROWS($I$2:$I$9),SUM(IF(FREQUENCY(IF($B$2:$B$12&$C$2:$C$12&$D$2:$D$12&$E$2:$E$12=I2&J2&K2&L2,MATCH($A$2:$A$12,$A$2:$A$12,0)),ROW($A$2:$A$12)-ROW($A$2)+1),1)),"") control+shift+enter copy down
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,067
Messages
6,128,590
Members
449,461
Latest member
jaxstraww1

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