Hi,
I have a query start date & time as 26-09-2019 13:28 & query solved date and time as 27-09-2019 13:48 in cells A4 & B4. I work in a shift that starts at 12:30 PM( named as lower) PM to 9:30 PM(named as upper). To find the duration between these start and end time within my shift timing I use this formula and that works perfectly and gives me a result of 9:20 as duration
=IF(B4="","",(NETWORKDAYS(A4,B4)-1)*(Upper-Lower)
+IF(NETWORKDAYS(B4,B4),MEDIAN(MOD(B4,1),Upper,Lower),Upper)
-MEDIAN(NETWORKDAYS(A4,A4)*MOD(A4,1),Upper,Lower))
link:https://exceljet.net/formula/get-wor...ates-and-times
But, if start date or end date falls on a week end then this gives me 0:00:00 due to networkdays formula
eg
29-09-2019 13:28 & query solved date and time as 30-09-2019 13:48 the result of the formula is 0, can someone please help me with formula that gives the duration for week ends as well.
thanks for the help in advance
Regards
Arvind
Bookmarks