Weekday Turn-Around Time Calculations

MOCCOM

New Member
Joined
Aug 11, 2017
Messages
6
I have a need to calculate two distinct attributes, by formulas (not VBA). Please note I am using UK date formats here.

1. Target Sign-Off Time. This should be calculated by adding weekday hours e.g. 24, 48, 72 to a date-time stamp in Excel. The logic needs to exclude weekend hours.
2. TAT Result. This should be calculated by comparing the Assigned Time (Start) to Actual Sign-Off Time (Stop), to determine the number of weekday hours actually consumed.

Example:
Assigned Time: 31/08/2017 09:00
TAT Target (Hrs): 72 (essentially 3 whole weekdays)
Target Sign-Off Time: Solution needed that outputs as 05/09/2017 09:00, in example given
Actual Sign-Off Time: 04/09/2017 15:00
TAT Result: Solution needed that outputs as 54 - that is 54 hrs (hh)

Any help gratefully received!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try:

ABCD
1startTargetActual# of workday hours
28/31/2017 9:009/5/2017 9:009/4/2017 15:0054

<tbody>
</tbody>
Sheet13

Worksheet Formulas
CellFormula
B2=WORKDAY(A2,3)+MOD(A2,1)
D2=(NETWORKDAYS(A2,C2)-1+MOD(C2,1)-MOD(A2,1))*24

<tbody>
</tbody>

<tbody>
</tbody>



The WORKDAY function in B2 requires you to enter a whole number of days, which seems like what you want to do. For the # of workday hours, I used NETWORKDAYS for the whole days, and calculated the difference for the hours. I use MOD in several places to handle the times.

I used American style dates, but it should work fine with UK style.
 
Last edited:
Upvote 0
Thank you Eric! This has me tantalizingly close. Is there any way to format the output to hh:mm i.e. 54:00, and ideally still allowing calculations to use this value, and not formatting as text?
 
Upvote 0
Well, you could take off the *24 from the D2 formula, then format the cell > More Number formats... > Time > 37:30:55, and that will show 54:00:00. You can still use D2 in calculations, but you'd need to multiply it by 24 to get the hours again.
 
Upvote 0

Forum statistics

Threads
1,215,707
Messages
6,126,353
Members
449,311
Latest member
accessbob

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