Imran Azam
Board Regular
- Joined
- Mar 15, 2011
- Messages
- 103
hi guys
a i am trying to count the number of customers that have both product AR and SR
and what is the combined QTY
so for example
i want something like this
Product combo combined qty number of customer
AR&SR 67 2
below is the data how can i do this ? i cant get the sumif and count if correct
[TABLE="width: 380"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]product[/TD]
[TD]QTY[/TD]
[TD]customer[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]5[/TD]
[TD]ALEX[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]8[/TD]
[TD]JAMES[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]2[/TD]
[TD]RYAN[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]6[/TD]
[TD]aa[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]9[/TD]
[TD]bb[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]1[/TD]
[TD]dd[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]1[/TD]
[TD]ee[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]1[/TD]
[TD]ff[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]1[/TD]
[TD]gg[/TD]
[/TR]
[TR]
[TD]SR[/TD]
[TD]20[/TD]
[TD]ALEX[/TD]
[/TR]
[TR]
[TD]SR[/TD]
[TD]1[/TD]
[TD]kk[/TD]
[/TR]
[TR]
[TD]SR[/TD]
[TD]1[/TD]
[TD]pp[/TD]
[/TR]
[TR]
[TD]SR[/TD]
[TD]1[/TD]
[TD]UU[/TD]
[/TR]
[TR]
[TD]SR[/TD]
[TD]40[/TD]
[TD]RYAN[/TD]
[/TR]
[TR]
[TD]SR[/TD]
[TD]3[/TD]
[TD]ZZ
[/TD]
[/TR]
</tbody>[/TABLE]
thanks for any helo
a i am trying to count the number of customers that have both product AR and SR
and what is the combined QTY
so for example
i want something like this
Product combo combined qty number of customer
AR&SR 67 2
below is the data how can i do this ? i cant get the sumif and count if correct
[TABLE="width: 380"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]product[/TD]
[TD]QTY[/TD]
[TD]customer[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]5[/TD]
[TD]ALEX[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]8[/TD]
[TD]JAMES[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]2[/TD]
[TD]RYAN[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]6[/TD]
[TD]aa[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]9[/TD]
[TD]bb[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]1[/TD]
[TD]dd[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]1[/TD]
[TD]ee[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]1[/TD]
[TD]ff[/TD]
[/TR]
[TR]
[TD]AR[/TD]
[TD]1[/TD]
[TD]gg[/TD]
[/TR]
[TR]
[TD]SR[/TD]
[TD]20[/TD]
[TD]ALEX[/TD]
[/TR]
[TR]
[TD]SR[/TD]
[TD]1[/TD]
[TD]kk[/TD]
[/TR]
[TR]
[TD]SR[/TD]
[TD]1[/TD]
[TD]pp[/TD]
[/TR]
[TR]
[TD]SR[/TD]
[TD]1[/TD]
[TD]UU[/TD]
[/TR]
[TR]
[TD]SR[/TD]
[TD]40[/TD]
[TD]RYAN[/TD]
[/TR]
[TR]
[TD]SR[/TD]
[TD]3[/TD]
[TD]ZZ
[/TD]
[/TR]
</tbody>[/TABLE]
thanks for any helo