This is what I was using for a simple data test case tab:
9/1/2013 1 14 2 40 53 20
9/2/2013 16 2 24 39 42 46
9/3/2013 25 32 35 50 1 46
9/4/2013 4 22 3 2 38 42
9/5/2013 2 7 36 42 44 39
Dataset = B2:G5
Test Case Tab:
[TABLE="width: 500"]
<TBODY>[TR]
[TD][/TD]
[TD]1
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]39
[/TD]
[TD][TABLE="width: 187"]
<TBODY>[TR]
[TD="class: xl65, width: 187"]Formula referencing B1 & A2
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[TD][TABLE="width: 187"]
<TBODY>[TR]
[TD="class: xl65, width: 187"]Formula referencing C1 & A2
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]50
[/TD]
[TD][TABLE="width: 187"]
<TBODY>[TR]
[TD="class: xl65, width: 187"]Formula referencing B1 & A3
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[TD][TABLE="width: 187"]
<TBODY>[TR]
[TD="class: xl65, width: 187"]Formula referencing C1 & A3
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
</TBODY>[/TABLE]
[TABLE="width: 144"]
<TBODY>[TR]
[TD="class: xl63, width: 64, bgcolor: transparent"][/TD]
[TD="class: xl63, width: 64, bgcolor: transparent, align: right"]
1
[/TD]
[TD="class: xl63, width: 64, bgcolor: transparent, align: right"]
2
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent, align: right"]
39
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
0
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
2
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent, align: right"]
50
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
1
[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
0
[/TD]
[/TR]
</TBODY>[/TABLE]
Since we have 2 item sets to test for:
B2, control+shift+enter, not just enter, copy across, and down:
Rich (BB code):
=SUM((MMULT((COUNTIF(OFFSET(DataSet,ROW(DataSet)-ROW(B2),0,1),
CHOOSE({1,2},B$1,$A2))>0)+0,{1;1})=2)+0)