Calculating complete hours over target

Marmaduke0703

New Member
Joined
Jan 25, 2021
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a report I need to pull some summary data from but I am unable to edit the report itself so no extra columns for me unfortunately! – shame as it would be quite simple if I could…

The report contains information around task completion times and we have a target of 90 minutes to complete the task before a penalty charge is added. For each complete hour after the initial 90 minutes, an additional charge is added.

What I need to do is calculate the total number of complete hours over the initial 90 minutes per day – note: this is complete hours per incident, not summing up part hours over the day.

I’ve attached a simplified worksheet to try and help explain…
Columns A & B contain simulated information available that I am unable to edit.
Column J contains the final figure I’m trying to reach

Columns D&E are the breakdown of how I’d get there if I could add an extra column, colour coded to the final table (column J).

Any idea how I can get straight from the raw data to the figures in column J without the step in column E?

Thanks :)

Raw Data tab…Summary tab…
Col ACol BCol DCol ECol J
DateCompletion time (minutes)Workings (for illustration only, not in Raw Data tab)DateTotal IncidentsIncidents over 90 minutesComplete hours over 90 minutes
01/07/2021​
65​
0
01/07/2021​
524
01/07/2021​
90​
0
02/07/2021​
311
01/07/2021​
120​
0
03/07/2021​
423
01/07/2021​
160
=Rounddown(160-90)/601
01/07/2021​
270
=Rounddown(270-90)/603
02/07/2021​
50​
0
02/07/2021​
80​
0
02/07/2021​
150​
=Rounddown(150-90)/601
03/07/2021​
180​
=Rounddown(180-90)/601
03/07/2021​
215​
=Rounddown(215-90)/602
03/07/2021​
85​
0
03/07/2021​
90​
0
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
How about
+Fluff 1.xlsm
ABCDEFGHIJ
1Raw Data tab…Summary tab…
2Col ACol BCol DCol ECol J
3DateCompletion time (minutes)Workings (for illustration only, not in Raw Data tab)DateTotal IncidentsIncidents over 90 minutesComplete hours over 90 minutes
401/07/202165001/07/2021534
501/07/202190002/07/2021311
601/07/2021120003/07/2021423
701/07/20211601
801/07/20212703
902/07/2021500
1002/07/2021800
1102/07/20211501
1203/07/20211801
1303/07/20212152
1403/07/2021850
1503/07/2021900
16
Master
Cell Formulas
RangeFormula
G4:G6G4=UNIQUE(A4:A15)
H4:H6H4=COUNTIFS(A:A,G4#)
I4:I6I4=COUNTIFS(A:A,G4#,B:B,">90")
J4:J6J4=SUM(ROUNDDOWN((FILTER($B$4:$B$15,($A$4:$A$15=G4)*($B$4:$B$15>90))-90)/60,0))
Dynamic array formulas.
 
Upvote 0
Solution
Date range I've called IncidentDate
Completion range I've called Completion_time
The date for the summary of the day's incidents is in column M

=sumproduct((IncidentDate=M2)*((Completion_time>90)*((Rounddown((Completion_time-90)/60,0)))))

Mum knows the answers to everything ?
 
Upvote 0
Date range I've called IncidentDate
Completion range I've called Completion_time
The date for the summary of the day's incidents is in column M

=sumproduct((IncidentDate=M2)*((Completion_time>90)*((Rounddown((Completion_time-90)/60,0)))))

Mum knows the answers to everything ?
You found your password then :ROFLMAO:
 
Upvote 0
How about
+Fluff 1.xlsm
ABCDEFGHIJ
1Raw Data tab…Summary tab…
2Col ACol BCol DCol ECol J
3DateCompletion time (minutes)Workings (for illustration only, not in Raw Data tab)DateTotal IncidentsIncidents over 90 minutesComplete hours over 90 minutes
401/07/202165001/07/2021534
501/07/202190002/07/2021311
601/07/2021120003/07/2021423
701/07/20211601
801/07/20212703
902/07/2021500
1002/07/2021800
1102/07/20211501
1203/07/20211801
1303/07/20212152
1403/07/2021850
1503/07/2021900
16
Master
Cell Formulas
RangeFormula
G4:G6G4=UNIQUE(A4:A15)
H4:H6H4=COUNTIFS(A:A,G4#)
I4:I6I4=COUNTIFS(A:A,G4#,B:B,">90")
J4:J6J4=SUM(ROUNDDOWN((FILTER($B$4:$B$15,($A$4:$A$15=G4)*($B$4:$B$15>90))-90)/60,0))
Dynamic array formulas.
Ah yes! this works too!

I need to put an error trap in for anything that results in 0 but I can handle that :) thank you so much!
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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