Sumproduct with multiple criteria in one column

jackfox68

Board Regular
Joined
Jan 24, 2010
Messages
121
I am trying to determine the Average Handling Time for each Rep based on user defined project, start and end date. The project is comprised of splits that are defined in the top right hand corner of the example. The results would be populated in the bottom right hand chart labeled AHT. I have tried using sumproduct with the -- but still can't seem to get it to work using more than one split.

Thanks for any help offered

Brian

ABCDEFGHIJKL
1DateAgent NameSplitACD CallsAHTStart DateEnd DateProjectProjectSplit
26/5/2017Perez, K CaLL618006/5/20176/7/2017Project 1Project 1617,628
36/5/2017Perez, K CaLL62700Project 2400,416
46/5/2017Rodimon, K CaLL61815286.8666687
56/5/2017Rodimon, K CaLL62711187.0909119
66/5/2017Mercado, K CaLL40059219.4576263CSR NameAHT
76/5/2017Mercado, K CaLL41643221.162796Perez, K CaLL?
86/5/2017Mercado, K CaLL61800Rodimon, K CaLL?
96/5/2017Mercado, K CaLL62700Mercado, K CaLL?
106/6/2017Perez, K CaLL6182251
116/6/2017Perez, K CaLL627104221.509613
126/6/2017Mercado, K CaLL40053240.8301849
136/6/2017Mercado, K CaLL41646220.6087036
146/6/2017Mercado, K CaLL6181723
156/6/2017Mercado, K CaLL62700
166/7/2017Perez, K CaLL61849249.9183655
176/7/2017Perez, K CaLL62755240.4909058
186/7/2017Rodimon, K CaLL40023309.6956787
196/7/2017Rodimon, K CaLL41625303
206/7/2017Rodimon, K CaLL61800
216/7/2017Rodimon, K CaLL62700
226/7/2017Mercado, K CaLL40048265.9791565
236/7/2017Mercado, K CaLL41642238.6666718
246/7/2017Mercado, K CaLL61800
256/7/2017Mercado, K CaLL62700
266/8/2017Perez, K CaLL61836247.4166718
276/8/2017Perez, K CaLL62766186.8787842
286/8/2017Rodimon, K CaLL40038198.5263214
296/8/2017Rodimon, K CaLL41636362.3055725
306/8/2017Rodimon, K CaLL61800
316/8/2017Rodimon, K CaLL62700
326/8/2017Mercado, K CaLL40037223.0270386
336/8/2017Mercado, K CaLL41639258.4102783
346/8/2017Mercado, K CaLL6181434
356/8/2017Mercado, K CaLL62700

<tbody>
</tbody>
 
Actually, I don't see any difference in the results with either formula.

Your formula with a different separators looks good; I just would use a different separator, maybe even a space... though some people use space as thousand separator, too. So i would stick with dash just to be sure.

Yes, the formula with proper separators (splits on a single cell) also works.
But the formula above (post #19) uses the setup provided in post #13 - splits in different cells (range M2:S6)

M.
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
So I was able to get the formula to work and sum up the AHT for both splits for each CSR for a defined Date Range, I changed the comma for a plus sign, not sure why the comma didn't work. Now what I need to do it weight the AHT with the number of calls so I can come up with a weighted average. So normally when I do this with a static data set for a single criteria I would use a formula that would look something like this.

=sumproduct(ACDCalls:ACDCalls,AHT:AHT)/sum(ACDCalls)

This would provide me with a weighted average. I don't think either of the solutions provide a weighted average, it just appears to sum up the total AHT time. Can either of the solutions provided be tweaked so they would provide a weighted average?

I am going to tinker around with both formula to see what I can come up with in the meantime.

I can't express how much I appreciate your help, I am that much closer to a solution, and continuing to learn.
 
Upvote 0
This is what I was trying but no luck.

=SUMPRODUCT(--(B$2:B$35=G7),--(A$2:A$35>=G$2),--(A$2:A$35<=H$2),--ISNUMBER(SEARCH("+"&C$2:C$35&"+","+"&INDEX(L$2:L$3,MATCH(I$2,K$2:K$3,0))&"+")),E$2:E$35,$D$2:$D$35)/SUMIFS($D:$D,$B:$B,$G7,$A:$A,">="&G2,$A:$A,"<="&H2,ISNUMBER(SEARCH(("+"&DD_Split&"+","+"&INDEX(($L$2:$L$3,MATCH(I$2,K$2:K$3,0))&"+")))))
 
Upvote 0
Holy Sheet1 I think I was able to piece together something that works. I have tried it on a couple of smaller samples with success, now I will apply it to a much larger data set. I will keep you posted on whether or not it works! Thank you so much. Here is what I used:

=SUMPRODUCT(--(B$2:B$35=G7),--(A$2:A$35>=G$2),--(A$2:A$35<=H$2),--ISNUMBER(SEARCH("+"&C$2:C$35&"+","+"&INDEX(L$2:L$3,MATCH(I$2,K$2:K$3,0))&"+")),E$2:E$35,$D$2:$D$35)/SUMPRODUCT(--(B$2:B$35=G7),--(A$2:A$35>=G$2),--(A$2:A$35<=H$2),--ISNUMBER(SEARCH("+"&C$2:C$35&"+","+"&INDEX(L$2:L$3,MATCH(I$2,K$2:K$3,0))&"+")),$D$2:$D$35)
 
Upvote 0
oh one last question, at least for now. Can I replace the defined ranges, e.g A2:A35 with dynamic ranges? Would the formula still work?
 
Upvote 0

Forum statistics

Threads
1,216,881
Messages
6,133,234
Members
449,790
Latest member
jindon22

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