Sumproduct third variable.

Mrupe86

New Member
Joined
Jun 22, 2024
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hello! I am having a hard time adding a third variable to Sumproduct formula. Column C counts the instances between A and B from the reference table. The third variable has to subtract all instances less than 00:45. There is a count if statement that provides the correct answer in column E. I have included the formulas I have tried, but they are wrong or wildly off. Please help! The column the third variable is called PowerQ[Ticket Delivery Time].


SumProduct(Subtotal(Offsett) - Formula Logic
countIF(PowerQ[Ticket Delivery Time],"<00:45:00")
0:45COUNTIFS(PowerQ[Delivery Time2], ">=" & A5, PowerQ[Delivery Time2], "<" & B5, PowerQ[Ticket Delivery Time], ">0:45")
Delivery TimesTicket PrintedTrays DeliveredLate Trays with count ifLate Volume %Late tray with SumproductTime to DeliverTotal Delivered
6:00:00 AM6:59:59 AM800%0:000:101876886
7:00:00 AM7:59:59 AM210793020322%0:110:201109SUMPRODUCT(SUBTOTAL(3,OFFSET(PowerQ[Print Time],ROW(powerq[Print Time])-ROW(powerq[Print Time]),0,1)),--(PowerQ[Print Time]<B6))-SUMPRODUCT(SUBTOTAL(3,OFFSET(PowerQ[Print Time],ROW(PowerQ[Print Time])-MIN(ROW(PowerQ[Print Time])),--(PowerQ[Print Time]<A6))-SUMPRODUCT(SUBTOTAL(3,OFFSET(PowerQ[Ticket Delivery Time],ROW(PowerQ[Ticket Delivery Time]),--(SUMPRODUCT(SUBTOTAL(3,OFFSET(PowerQ[Ticket Delivery Time],ROW(PowerQ[Ticket Delivery Time])-MIN(ROW(PowerQ[Ticket Delivery Time])),,1))*(PowerQ[Ticket Delivery Time],>"12:45:00 AM")
8:00:00 AM8:59:59 AM1108188089948%0:210:301972
9:00:00 AM9:59:59 AM502106452750%0:310:443618-16758
10:00:00 AM10:59:59 AM22729510435%0:450:5013155280
11:00:00 AM11:59:59 AM20496178714%0:511:0013952049
12:00:00 PM12:59:59 PM1168187291549%1:011:1010971168
1:00:00 PM1:59:59 PM635122355946%1:111:20525635
2:00:00 PM2:59:59 PM21741018946%1:211:30402SUMPRODUCT(SUBTOTAL(3,OFFSET(PowerQ[Print Time],ROW(PowerQ[Print Time])-MIN(ROW(PowerQ[Print Time]),0,1),--(PowerQ[Print Time]<B13),--(PowerQ[Print Time]<A13)),--(PowerQ[Ticket Delivery Time]>A3)))
3:00:00 PM3:59:59 PM2001536341%1:3111:59587200
4:00:00 PM4:59:59 PM18486858012%1848
5:00:00 PM5:59:59 PM1248161974446%1248
6:00:00 PM6:59:59 PM456125251641%456
7:00:00 PM7:59:59 PM219816784%2
Totals1176712206505338%
 
=SUMPRODUCT(SUBTOTAL(3,OFFSET(PowerQ[Delivery Time2],ROW(PowerQ[Delivery Time2])-MIN(ROW(PowerQ[Delivery Time2])),0,1)),--(PowerQ[Delivery Time2]>=A5),--(PowerQ[Delivery Time2]<=B5),--(PowerQ[Ticket Delivery Time]>$A$3))
 
Upvote 0
Solution

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