Roy_Excel_Island_Apps
Board Regular
- Joined
- Oct 9, 2018
- Messages
- 76
- Office Version
- 365
- Platform
- Windows
Hi all,
in the image you can see a template that can be filled in by an employee. He has to fill in when he has done an on-call intervention. On the right (in yellow) I want to calculate the hours worked in the timeslots in S1 to AB1. If you have done an intervention from 13:00h-20:00h, I get 2 hours in 12:15h timeslot, 3 hours in the 15-18h timeslot and 2 hours in the 18-20h timeslot.
I need to know the hours worked in the timeslots, because they need to get paid to a certain percentage, depending on the timeslots they worked in. The percentages are in the colored schema. I will manage to calculate it when I have the hours per timeslot. But it's too difficult for me. When working in the same they: OK
But it get's difficult when someone does an intervention over midnight, like in the image. When working from 22h00-02:00h, I need to see 1 hour in the 20-23h timeslot, 1 hours in the 23-24h timeslot and 2 hours in the 00-03h timeslot. But how?
Formula now in cel T12: =IF(MIN(HOUR($Q$14);HOUR(T1))-MAX(HOUR($Q$13);HOUR(S1))>0;MIN(HOUR($Q$14);HOUR(T1))-MAX(HOUR($Q$13);HOUR(S1));0)
Thanks so much for the one who can help me!
Kind regards, Roy
in the image you can see a template that can be filled in by an employee. He has to fill in when he has done an on-call intervention. On the right (in yellow) I want to calculate the hours worked in the timeslots in S1 to AB1. If you have done an intervention from 13:00h-20:00h, I get 2 hours in 12:15h timeslot, 3 hours in the 15-18h timeslot and 2 hours in the 18-20h timeslot.
I need to know the hours worked in the timeslots, because they need to get paid to a certain percentage, depending on the timeslots they worked in. The percentages are in the colored schema. I will manage to calculate it when I have the hours per timeslot. But it's too difficult for me. When working in the same they: OK
But it get's difficult when someone does an intervention over midnight, like in the image. When working from 22h00-02:00h, I need to see 1 hour in the 20-23h timeslot, 1 hours in the 23-24h timeslot and 2 hours in the 00-03h timeslot. But how?
Formula now in cel T12: =IF(MIN(HOUR($Q$14);HOUR(T1))-MAX(HOUR($Q$13);HOUR(S1))>0;MIN(HOUR($Q$14);HOUR(T1))-MAX(HOUR($Q$13);HOUR(S1));0)
Thanks so much for the one who can help me!
Kind regards, Roy