egemencoskun
New Member
- Joined
- Feb 9, 2010
- Messages
- 19
Hi All,
Need a formula to calculate total number of hours that fall between 2 specific times as below.
Formula should go to Unsociable Hours Column (F)
<tbody>
</tbody>
I have a sample SS but cant figure how to upload.
Need a formula to calculate total number of hours that fall between 2 specific times as below.
Formula should go to Unsociable Hours Column (F)
From | 20:00 | In the evening | |||||||
To | 08:00 | in the morning | Ignoring the break!!! | ||||||
Employee | IN | OUT | Break (mins) | Total Hours | Unsociable Hours | Uns Should be | |||
A | 04:30 | 11:00 | 60 | 5.50 | 3.5 | Between 04:30 and 08:00 and the rest is normal hours | |||
B | 20:00 | 07:00 | 0 | 11.00 | 11 | Between 20:00 and 07:00 so no normal time | |||
N | 19:00 | 07:30 | 30 | 12.00 | 11.5 | Between 20:00 and 07:30 and the rest is normal hours | |||
G | 22:00 | 10:00 | 45 | 11.25 | 10 | Between 22:00 and 08:00 and the rest is normal hours | |||
F | 23:30 | 12:00 | 50 | 11.67 | 8.5 | Between 23:30 and 08:00 and the rest is normal hours | |||
D | 00:00 | 13:00 | 40 | 12.33 | " | " | |||
E | 03:00 | 16:00 | 45 | 12.25 | " | " | |||
R | 05:00 | 08:00 | 50 | 2.17 | " | " | |||
T | 07:00 | 16:00 | 30 | 8.50 | " | " | |||
Y | 08:00 | 19:00 | 45 | 10.25 | " | " | |||
U | 09:00 | 15:00 | 60 | 5.00 | " | " | |||
I | 08:05 | 16:00 | 60 | 6.92 | |||||
O | 07:55 | 07:00 | 45 | 22.33 | |||||
P | 09:00 | 06:00 | 50 | 20.17 | |||||
Z | 11:00 | 19:00 | 55 | 7.08 | |||||
X | 13:00 | 22:00 | 45 | 8.25 | |||||
C | 15:00 | 23:00 | 50 | 7.17 | |||||
V | 17:00 | 01:00 | 60 | 7.00 | |||||
B | 19:00 | 03:00 | 60 | 7.00 | |||||
N | 21:00 | 04:00 | 75 | 5.75 | |||||
M | 23:00 | 09:00 | 95 | 8.42 | |||||
L | 23:45 | 22:00 | 150 | 19.75 | |||||
K | 01:00 | 07:00 | 45 | 5.25 | |||||
Q | 01:25 | 08:00 | 40 | 5.92 | |||||
W | 02:00 | 08:05 | 90 | 4.58 | |||||
E | 03:00 | 07:55 | 85 | 3.50 |
<tbody>
</tbody>
I have a sample SS but cant figure how to upload.
Last edited: