Hello, I've done some searches and cannot find a thread to help me.
I'm trying to calculate average commission in column L (=SUMPRODUCT(B3:B17,E3:E17)/SUM(B3:B17))
But have it only use the dates between column I and J. I need advice on to create a statement that says SUMPRODUCT IF the data in column B and E falls withing the dates in columns I and J.
Any and all help is appreciated.
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 922"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[TD="align: center"]K[/TD]
[TD="align: center"]L[/TD]
[TD="align: center"]M[/TD]
[/TR]
[TR]
[TD="align: center"]Date[/TD]
[TD="align: center"]Qty[/TD]
[TD="align: center"]Stock[/TD]
[TD="align: center"]Price[/TD]
[TD="align: center"]Commission[/TD]
[TD="align: center"]$[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Totals[/TD]
[TD="align: center"]Start[/TD]
[TD="align: center"]End[/TD]
[TD="align: center"]Qty[/TD]
[TD="align: center"]Avg Commission[/TD]
[TD="align: center"]$[/TD]
[/TR]
[TR]
[TD="align: center"]7/2/14[/TD]
[TD="align: center"]15,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$150[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Jul-14[/TD]
[TD="align: center"]7/2/14[/TD]
[TD="align: center"]7/31/14[/TD]
[TD="align: center"]202,000[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$2,620[/TD]
[/TR]
[TR]
[TD="align: center"]7/3/14[/TD]
[TD="align: center"]5,500[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$55[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Aug-14[/TD]
[TD="align: center"]8/1/14[/TD]
[TD="align: center"]8/31/14[/TD]
[TD="align: center"]821,385[/TD]
[TD="align: center"][/TD]
[TD="align: center"]$0[/TD]
[/TR]
[TR]
[TD="align: center"]7/10/14[/TD]
[TD="align: center"]25,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$250[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/23/14[/TD]
[TD="align: center"]20,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$200[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/23/14[/TD]
[TD="align: center"]20,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$200[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/24/14[/TD]
[TD="align: center"]10,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$100[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/25/14[/TD]
[TD="align: center"]10,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$100[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/25/14[/TD]
[TD="align: center"]5,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$50[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/25/14[/TD]
[TD="align: center"]5,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$50[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/25/14[/TD]
[TD="align: center"]5,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$50[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/28/14[/TD]
[TD="align: center"]6,500[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$65[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/30/14[/TD]
[TD="align: center"]15,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$150[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/30/14[/TD]
[TD="align: center"]30,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$600[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/31/14[/TD]
[TD="align: center"]20,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$400[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/31/14[/TD]
[TD="align: center"]10,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$200[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8/1/14[/TD]
[TD="align: center"]8,400[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$168[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8/1/14[/TD]
[TD="align: center"]26,500[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$530[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8/4/14[/TD]
[TD="align: center"]20,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$400[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8/4/14[/TD]
[TD="align: center"]1,500[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$30[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
I'm trying to calculate average commission in column L (=SUMPRODUCT(B3:B17,E3:E17)/SUM(B3:B17))
But have it only use the dates between column I and J. I need advice on to create a statement that says SUMPRODUCT IF the data in column B and E falls withing the dates in columns I and J.
Any and all help is appreciated.
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 922"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[TD="align: center"]K[/TD]
[TD="align: center"]L[/TD]
[TD="align: center"]M[/TD]
[/TR]
[TR]
[TD="align: center"]Date[/TD]
[TD="align: center"]Qty[/TD]
[TD="align: center"]Stock[/TD]
[TD="align: center"]Price[/TD]
[TD="align: center"]Commission[/TD]
[TD="align: center"]$[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Totals[/TD]
[TD="align: center"]Start[/TD]
[TD="align: center"]End[/TD]
[TD="align: center"]Qty[/TD]
[TD="align: center"]Avg Commission[/TD]
[TD="align: center"]$[/TD]
[/TR]
[TR]
[TD="align: center"]7/2/14[/TD]
[TD="align: center"]15,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$150[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Jul-14[/TD]
[TD="align: center"]7/2/14[/TD]
[TD="align: center"]7/31/14[/TD]
[TD="align: center"]202,000[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$2,620[/TD]
[/TR]
[TR]
[TD="align: center"]7/3/14[/TD]
[TD="align: center"]5,500[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$55[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Aug-14[/TD]
[TD="align: center"]8/1/14[/TD]
[TD="align: center"]8/31/14[/TD]
[TD="align: center"]821,385[/TD]
[TD="align: center"][/TD]
[TD="align: center"]$0[/TD]
[/TR]
[TR]
[TD="align: center"]7/10/14[/TD]
[TD="align: center"]25,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$250[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/23/14[/TD]
[TD="align: center"]20,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$200[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/23/14[/TD]
[TD="align: center"]20,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$200[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/24/14[/TD]
[TD="align: center"]10,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$100[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/25/14[/TD]
[TD="align: center"]10,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$100[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/25/14[/TD]
[TD="align: center"]5,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$50[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/25/14[/TD]
[TD="align: center"]5,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$50[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/25/14[/TD]
[TD="align: center"]5,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$50[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/28/14[/TD]
[TD="align: center"]6,500[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$65[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/30/14[/TD]
[TD="align: center"]15,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.01[/TD]
[TD="align: center"]$150[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/30/14[/TD]
[TD="align: center"]30,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$600[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/31/14[/TD]
[TD="align: center"]20,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$400[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7/31/14[/TD]
[TD="align: center"]10,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$200[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8/1/14[/TD]
[TD="align: center"]8,400[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$168[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8/1/14[/TD]
[TD="align: center"]26,500[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$530[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8/4/14[/TD]
[TD="align: center"]20,000[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$400[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8/4/14[/TD]
[TD="align: center"]1,500[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]24.565[/TD]
[TD="align: center"]0.02[/TD]
[TD="align: center"]$30[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]