Divide two sumifs formula?

njsutorius

New Member
Joined
Apr 6, 2014
Messages
43
Hello,

I have a sumifs equation i need help with. I have four columns, dates, id#, time, and calls.

I have a sum ifs that check for the id and between a specific date range then it sums the time together, and then another equation that checks if its the same date range and id # then it adds the numbers. I want it to do this but also divide one by the other which will give me calls per hour.

It would look something like this.

Cell G1 would show the call per hour of Agent 200 by adding up all of column C if its within a specific date range and matches agent id 200 and then divide it by the sum of column D if again it matches id 200 and the same date range as before.


A
b
c
d
e
f
g
h
1
Date
ID
Time
Calls
Employee
Calls per hour
Date Range
2
1/1/2014
200

20:20:00
200
200
1/1/2014
3
2/1/2014
201
31:21:20
300
201
3/1/2014
4
3/1/2014
200
22:22:22
300
5
4/1/2014
201
45:45:00
200
6
5/1/2014
200
30:30:00
200

<tbody>
</tbody>


Thanks for the support! great site!
 
Still getting the same result. I was able to to change the E10 in both sections. Im missing something. Trying to think it out.

=SUMPRODUCT(--(SUMPRODUCT(--('Production data'!B2:B11=E10),'Production data'!E2:E11)/(SUMPRODUCT(--('Production data'!B2:B11=E10),--('Production data'!A2:A11>=F5),--('Production data'!A2:A11<=F6),'Production data'!F2:F11))))
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Still getting the same result. I was able to to change the E10 in both sections. Im missing something. Trying to think it out.

=SUMPRODUCT(--(SUMPRODUCT(--('Production data'!B2:B11=E10),'Production data'!E2:E11)/(SUMPRODUCT(--('Production data'!B2:B11=E10),--('Production data'!A2:A11>=F5),--('Production data'!A2:A11<=F6),'Production data'!F2:F11))))

copy exactly as is, too many "()" and one too many sumproduct
=SUMPRODUCT(--('Production data'!B2:B11=E10),'Production data'!E2:E11)/(SUMPRODUCT(--('Production data'!B2:B11=E10),--('Production data'!A2:A11>=F5),--('Production data'!A2:A11<=F6),'Production data'!F2:F11))
<colgroup><col width="757" style="width: 568pt; mso-width-source: userset; mso-width-alt: 27684;"> <tbody> </tbody>
 
Upvote 0
one more advise, try to avoid merging cells.
<colgroup><col width="757" style="width: 568pt; mso-width-source: userset; mso-width-alt: 27684;"> <tbody> </tbody>
 
Upvote 0
Your the man! thank you for all the time you spent helping me. It was very kind of you. To follow up on your previous comment that they have to be the same ranges. Is it ok to do the entire column such as $A:$A and have the ranges match like that?
 
Upvote 0
Your the man! thank you for all the time you spent helping me. It was very kind of you. To follow up on your previous comment that they have to be the same ranges. Is it ok to do the entire column such as $A:$A and have the ranges match like that?

=SUMPRODUCT(--('Production data'!B:B=E10),'Production data'!E:E)/(SUMPRODUCT(--('Production data'!B:B=E10),--('Production data'!A:A>=F5),--('Production data'!A:A<=F6),'Production data'!F:F))
It works, but it takes much longer to calculate….
<colgroup><col width="757" style="width: 568pt; mso-width-source: userset; mso-width-alt: 27684;"> <tbody> </tbody>
 
Upvote 0
=SUMPRODUCT(--('Production data'!B:B=E10),'Production data'!E:E)/(SUMPRODUCT(--('Production data'!B:B=E10),--('Production data'!A:A>=F5),--('Production data'!A:A<=F6),'Production data'!F:F))
It works, but it takes much longer to calculate….

<TBODY>
</TBODY>

The OP has never provided a manully calculated figure... The above formula can be rewritten as:
Rich (BB code):
=SUMIF(
  'Production data'!B:B,E10,
  'Production data'!E:E)/
 SUMIFS(
  'Production data'!F:F,
  'Production data'!B:B,E10,
  'Production data'!A:A,">="&F5,
  'Production data'!A:A,"<="F6)
 
Upvote 0
The OP has never provided a manully calculated figure... The above formula can be rewritten as:
Rich (BB code):
=SUMIF(
  'Production data'!B:B,E10,
  'Production data'!E:E)/
 SUMIFS(
  'Production data'!F:F,
  'Production data'!B:B,E10,
  'Production data'!A:A,">="&F5,
  'Production data'!A:A,"<="F6)

this formula works as well, just need to add the "&" before "F6" for the last criteria.
<colgroup><col width="757" style="width: 568pt; mso-width-source: userset; mso-width-alt: 27684;"> <tbody> </tbody>
 
Upvote 0
this formula works as well, just need to add the "&" before "F6" for the last criteria.

<tbody>
</tbody>
Wow awesome guys. All the extra input is greatly appreciated. It helps me learn the formulas. Again very thankful for everyone input on this. You guys are awesome!
 
Upvote 0

Forum statistics

Threads
1,215,525
Messages
6,125,325
Members
449,218
Latest member
Excel Master

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