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)
[TABLE="width: 1372"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]From[/TD]
[TD]20:00[/TD]
[TD]In the evening[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]To[/TD]
[TD]08:00[/TD]
[TD]in the morning[/TD]
[TD][/TD]
[TD="colspan: 2"]Ignoring the break!!![/TD]
[/TR]
[TR]
[TD]Employee[/TD]
[TD]IN[/TD]
[TD]OUT[/TD]
[TD]Break (mins)[/TD]
[TD]Total Hours[/TD]
[TD]Unsociable Hours[/TD]
[TD][/TD]
[TD][/TD]
[TD]Uns Should be[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]04:30[/TD]
[TD]11:00[/TD]
[TD]60[/TD]
[TD]5.50[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3.5[/TD]
[TD]Between 04:30 and 08:00 and the rest is normal hours[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]20:00[/TD]
[TD]07:00[/TD]
[TD]0[/TD]
[TD]11.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11[/TD]
[TD]Between 20:00 and 07:00 so no normal time[/TD]
[/TR]
[TR]
[TD]N[/TD]
[TD]19:00[/TD]
[TD]07:30[/TD]
[TD]30[/TD]
[TD]12.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11.5[/TD]
[TD]Between 20:00 and 07:30 and the rest is normal hours[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]22:00[/TD]
[TD]10:00[/TD]
[TD]45[/TD]
[TD]11.25[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]10[/TD]
[TD]Between 22:00 and 08:00 and the rest is normal hours[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]23:30[/TD]
[TD]12:00[/TD]
[TD]50[/TD]
[TD]11.67[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]8.5[/TD]
[TD]Between 23:30 and 08:00 and the rest is normal hours[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]00:00[/TD]
[TD]13:00[/TD]
[TD]40[/TD]
[TD]12.33[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]"[/TD]
[TD]"[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]03:00[/TD]
[TD]16:00[/TD]
[TD]45[/TD]
[TD]12.25[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]"[/TD]
[TD]"[/TD]
[/TR]
[TR]
[TD]R[/TD]
[TD]05:00[/TD]
[TD]08:00[/TD]
[TD]50[/TD]
[TD]2.17[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]"[/TD]
[TD]"[/TD]
[/TR]
[TR]
[TD]T[/TD]
[TD]07:00[/TD]
[TD]16:00[/TD]
[TD]30[/TD]
[TD]8.50[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]"[/TD]
[TD]"[/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]08:00[/TD]
[TD]19:00[/TD]
[TD]45[/TD]
[TD]10.25[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]"[/TD]
[TD]"[/TD]
[/TR]
[TR]
[TD]U[/TD]
[TD]09:00[/TD]
[TD]15:00[/TD]
[TD]60[/TD]
[TD]5.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]"[/TD]
[TD]"[/TD]
[/TR]
[TR]
[TD]I[/TD]
[TD]08:05[/TD]
[TD]16:00[/TD]
[TD]60[/TD]
[TD]6.92[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]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][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]L[/TD]
[TD]23:45[/TD]
[TD]22:00[/TD]
[TD]150[/TD]
[TD]19.75[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]K[/TD]
[TD]01:00[/TD]
[TD]07:00[/TD]
[TD]45[/TD]
[TD]5.25[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Q[/TD]
[TD]01:25[/TD]
[TD]08:00[/TD]
[TD]40[/TD]
[TD]5.92[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]W[/TD]
[TD]02:00[/TD]
[TD]08:05[/TD]
[TD]90[/TD]
[TD]4.58[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]03:00[/TD]
[TD]07:55[/TD]
[TD]85[/TD]
[TD]3.50[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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)
[TABLE="width: 1372"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]From[/TD]
[TD]20:00[/TD]
[TD]In the evening[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]To[/TD]
[TD]08:00[/TD]
[TD]in the morning[/TD]
[TD][/TD]
[TD="colspan: 2"]Ignoring the break!!![/TD]
[/TR]
[TR]
[TD]Employee[/TD]
[TD]IN[/TD]
[TD]OUT[/TD]
[TD]Break (mins)[/TD]
[TD]Total Hours[/TD]
[TD]Unsociable Hours[/TD]
[TD][/TD]
[TD][/TD]
[TD]Uns Should be[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]04:30[/TD]
[TD]11:00[/TD]
[TD]60[/TD]
[TD]5.50[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3.5[/TD]
[TD]Between 04:30 and 08:00 and the rest is normal hours[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]20:00[/TD]
[TD]07:00[/TD]
[TD]0[/TD]
[TD]11.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11[/TD]
[TD]Between 20:00 and 07:00 so no normal time[/TD]
[/TR]
[TR]
[TD]N[/TD]
[TD]19:00[/TD]
[TD]07:30[/TD]
[TD]30[/TD]
[TD]12.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11.5[/TD]
[TD]Between 20:00 and 07:30 and the rest is normal hours[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]22:00[/TD]
[TD]10:00[/TD]
[TD]45[/TD]
[TD]11.25[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]10[/TD]
[TD]Between 22:00 and 08:00 and the rest is normal hours[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]23:30[/TD]
[TD]12:00[/TD]
[TD]50[/TD]
[TD]11.67[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]8.5[/TD]
[TD]Between 23:30 and 08:00 and the rest is normal hours[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]00:00[/TD]
[TD]13:00[/TD]
[TD]40[/TD]
[TD]12.33[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]"[/TD]
[TD]"[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]03:00[/TD]
[TD]16:00[/TD]
[TD]45[/TD]
[TD]12.25[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]"[/TD]
[TD]"[/TD]
[/TR]
[TR]
[TD]R[/TD]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D]4.58[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]03:00[/TD]
[TD]07:55[/TD]
[TD]85[/TD]
[TD]3.50[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have a sample SS but cant figure how to upload.
Last edited: