Forum Discussion
Calculating and expressing time worked as days hours minutes
Hi Georgie,
General idea is here https://exceljet.net/formula/get-days-hours-and-minutes-between-dates. To suggest concrete formula for your case could you please clarify how did you receive 3 days 5 hours 5 minutes in your sample - you have 4 workdays in between plus 06:45 on first day and 3 hours of work time on last day
- DeletedOct 26, 2018
I can't do it.. how do I embed the networking days and the holidays into the suggested formula
=INT(J2-E2)&"days"&TEXT(J2-E2,"h""hrs""m""mins""") ?
- SergeiBaklanOct 26, 2018Diamond Contributor
As variant
=NETWORKDAYS(A5+1,B5-1,HolidayList) & " days " & TEXT(B2-(A5-INT(A5))+B5-INT(B5)-A2,"h"" hours ""m""minutes""")
but shall be modified if hours in first and last days are more than 8 hrs in sum and you'd like to consider them as 1 day plus some time, not sure about business logic here. Please see attached.
- DeletedOct 26, 2018
Thanks very much for this, if I embed network days I should be able to make it work