I've used this formula to determine hours worked between 22:00-06:00 and it works fine:
=MOD($S4-$R4,1)*24-($S4<$R4)*(22-6)-MEDIAN($S4*24,22,6)+MEDIAN($R4*24,22,6)
I'm now trying to calculate hours worked between 00:00 - 06:00, but it doesn't give me the correct value:
=MOD($S4-$R4,1)*24-($S4<$R4)*(0-6)-MEDIAN($S4*24,0,6)+MEDIAN($R4*24,0,6)
Also I have another column with the day of the week (column q). I want to show the hours worked on a Sunday only. What formula can be used for this?
Can you please help?
Bookmarks