VBAProIWish
Well-known Member
- Joined
- Jul 6, 2009
- Messages
- 1,027
- Office Version
- 365
- Platform
- Windows
Hello,
Using the example below, "Jim" has 15 rebates sent out in quarter 1 of 2011.
7 Rebates in January
6 Rebates in February
2 Rebates in March
15 Rebates total
15 (rebates) / 3 (months) = 5 rebates/month average for the first quarter of 2011.
I'm looking to get an answer of "5" so that I can put this into a pivot table, but can't seem to figure it out.
I tried using a "count of count" formula like this here...
...but it's giving me an average of "5.933333333"
Can anyone figure my dilemma out?
Thanks
Using the example below, "Jim" has 15 rebates sent out in quarter 1 of 2011.
7 Rebates in January
6 Rebates in February
2 Rebates in March
15 Rebates total
15 (rebates) / 3 (months) = 5 rebates/month average for the first quarter of 2011.
I'm looking to get an answer of "5" so that I can put this into a pivot table, but can't seem to figure it out.
Sales Item Date Rebate Sent
Jim Rebate 1/1/2011
Jim Rebate 1/1/2011
Jim Rebate 1/1/2011
Jim Rebate 1/1/2011
Jim Rebate 1/1/2011
Jim Rebate 1/1/2011
Jim Rebate 1/1/2011
Jim Rebate 2/15/2011
Jim Rebate 2/15/2011
Jim Rebate 2/15/2011
Jim Rebate 2/15/2011
Jim Rebate 2/15/2011
Jim Rebate 2/15/2011
Jim Rebate 3/22/2011
Jim Rebate 3/22/2011
I tried using a "count of count" formula like this here...
Code:
=SUMPRODUCT(--($A$2:$A$16=A5),--($C$2:$C$16=C5))
Salesman Item Date Rebate Sent Count
Jim Rebate 1/1/2011 7
Jim Rebate 1/1/2011 7
Jim Rebate 1/1/2011 7
Jim Rebate 1/1/2011 7
Jim Rebate 1/1/2011 7
Jim Rebate 1/1/2011 7
Jim Rebate 1/1/2011 7
Jim Rebate 2/15/2011 6
Jim Rebate 2/15/2011 6
Jim Rebate 2/15/2011 6
Jim Rebate 2/15/2011 6
Jim Rebate 2/15/2011 6
Jim Rebate 2/15/2011 6
Jim Rebate 3/22/2011 2
Jim Rebate 3/22/2011 2
...but it's giving me an average of "5.933333333"
Can anyone figure my dilemma out?
Thanks