Hi, i am trying to calculate total weekday, Saturday and Sunday Hours. Each shift spans midnight. I can not find this anywhere, all similar posts include night shift. Night shift is irrelevant for me.
This is what I have so far, however I can't work out how to separate the hours after midnight.
E2 =MOD(End-Start,1)*24*(WEEKDAY(Date,2)<6)
F2 =MOD(End-Start,1)*24*(WEEKDAY(Date,2)=6)
G2 =(MOD(End-Start,1)*24*(WEEKDAY(Date,2)=7))
Below is what I would love to achieve with formulas.
Any help would be greatly appreciated. This has almost broken me.
This is what I have so far, however I can't work out how to separate the hours after midnight.
Day | Date | Start | End | Weekday | Saturday | Sunday | Total |
Saturday | 09/03/22 | 16:00 | 8:00 | 0 | 16 | 0 | 16 |
Sunday | 09/04/22 | 18:00 | 8:00 | 0 | 0 | 14 | 14 |
Monday | 09/05/22 | 1:00 | 8:00 | 7 | 0 | 0 | 7 |
Tuesday | 09/06/22 | 19:30 | 8:00 | 12.5 | 0 | 0 | 12.5 |
Wednesday | 09/07/22 | 16:00 | 8:00 | 16 | 0 | 0 | 16 |
Thursday | 09/08/22 | 20:00 | 8:00 | 12 | 0 | 0 | 12 |
Friday | 09/09/22 | 21:00 | 8:00 | 11 | 0 | 0 | 11 |
Saturday | 09/10/22 | 19:00 | 8:00 | 0 | 13 | 0 | 13 |
Sunday | 09/11/22 | 17:30 | 8:00 | 0 | 0 | 14.5 | 14.5 |
Monday | 09/12/22 | 16:00 | 8:00 | 16 | 0 | 0 | 16 |
Tuesday | 09/13/22 | 20:00 | 8:00 | 12 | 0 | 0 | 12 |
Wednesday | 09/14/22 | 20:15 | 8:00 | 11.75 | 0 | 0 | 11.75 |
Total | 98.25 | 29 | 28.5 |
E2 =MOD(End-Start,1)*24*(WEEKDAY(Date,2)<6)
F2 =MOD(End-Start,1)*24*(WEEKDAY(Date,2)=6)
G2 =(MOD(End-Start,1)*24*(WEEKDAY(Date,2)=7))
Below is what I would love to achieve with formulas.
Day | Date | Start | End | Weekday | Saturday | Sunday | Total |
Saturday | 09/03/22 | 16:00 | 8:00 | 0 | 8 | 8 | 16 |
Sunday | 09/04/22 | 18:00 | 8:00 | 8 | 0 | 6 | 14 |
Monday | 09/05/22 | 1:00 | 8:00 | 7 | 0 | 0 | 7 |
Tuesday | 09/06/22 | 19:30 | 8:00 | 12.5 | 0 | 0 | 12.5 |
Wednesday | 09/07/22 | 16:00 | 8:00 | 16 | 0 | 0 | 16 |
Thursday | 09/08/22 | 20:00 | 8:00 | 12 | 0 | 0 | 12 |
Friday | 09/09/22 | 21:00 | 8:00 | 3 | 8 | 0 | 11 |
Saturday | 09/10/22 | 19:00 | 8:00 | 0 | 5 | 8 | 13 |
Sunday | 09/11/22 | 17:30 | 8:00 | 8 | 0 | 6.5 | 14.5 |
Monday | 09/12/22 | 16:00 | 8:00 | 16 | 0 | 0 | 16 |
Tuesday | 09/13/22 | 20:00 | 8:00 | 12 | 0 | 0 | 12 |
Wednesday | 09/14/22 | 20:15 | 8:00 | 11.75 | 0 | 0 | 11.75 |
Total | 98.25 | 29 | 28.5 |
Any help would be greatly appreciated. This has almost broken me.