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>
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Not sure i understand what you are trying to do.
Using your data sample above, see if this does what you need.

Formula in H7 copied down
=SUMPRODUCT(--(B$2:B$35=G7),--ISNUMBER(MATCH("*,"&C$2:C$35&",*",","&L$2:L$3&",",0)),E$2:E$35)

Hope this helps

M.
 
Upvote 0
Hi Marcelo,

Thank you for your reply, I do appreciate it.

What I am trying to do is find the weighted average AHT for all CSR's based on a dynamic date and project. So the user will choose from a drop down which date range they want to view and for which project. Now the projects are comprised of skills, so I was hoping that when the user selected the project the right skills would be included.

Am I making sense now? It is a bit confusing. Essentially I am running a call center and trying to create a manual scorecard.

Thanks again

Brian
 
Upvote 0
Still not 100% sure about what you need...

See if this works (assumes drop-downs in G2, H2 and I2)
H7 copied down
=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)

M.
 
Last edited:
Upvote 0
I will try it now and will let you know. Here is an example of the formula I am trying to work with. I have the Project Splits manually entered into the array.

'=SUM(SUMPRODUCT(--(DD_CSRName=A2),--(DD_Split={618,627}),--(DD_Date>=L3),--(DD_Date<=L5),DD_ACDCalls,DD_AHT))/SUM(SUMIFS(DD_ACDCalls,DD_Date,">="&L3,DD_Date,"<="&L5,DD_CSRName,"="&A2,DD_Split,"="&{618,627}))
 
Upvote 0
To understand my formula in post #4

--(B$2:B$35=G7) checks if the names in column B are equal to the name in G7

--(A$2:A$35>=G$2),--(A$2:A$35<=H$2) these two together check if the dates in column A are inside the interval chosen by the user

--ISNUMBER(SEARCH(","&C$2:C$35&",",","&INDEX(L$2:L$3,MATCH(I$2,K$2:K$3,0))&",")) checks if the splits in column C match the splits of the chosen project

M.
 
Last edited:
Upvote 0
Yes I understand the formula, thank you. Do you think it could be the way I am storing the splits in L2 and L3?
 
Upvote 0
ok - let me spend some time at it then and see if I can get it to work. If it worked for you it has to be something I am doing. I'll keep you posted, and thanks again.
 
Upvote 0
I think the issue might be with the way I cam storing the splits in cells L2 and L3. When I click on the cell, the formula bar shows them as one big number, so for project 1 it readds 618627 and it shoudl read 618,627.
 
Upvote 0

Forum statistics

Threads
1,215,748
Messages
6,126,654
Members
449,326
Latest member
asp123

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