I'm trying to identify which employees work at night. Between 6:30 and 23:00 is day time. Outside is night time (just by getting part of it). Without using VBA is there any formula in excel to this?
Example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Employee name[/TD]
[TD]Work Time[/TD]
[TD]Identification[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Andrew[/TD]
[TD]04:00 - 06:00[/TD]
[TD]Night Time[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Bernie[/TD]
[TD]05:00 - 09:00[/TD]
[TD]Night Time[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Charles[/TD]
[TD]04:00 - 12:00[/TD]
[TD]Night Time[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Diana[/TD]
[TD]10:00 - 18:00[/TD]
[TD]Day Time[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Earl[/TD]
[TD]20:00 - 02:00[/TD]
[TD]Night Time[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Fergie[/TD]
[TD]22:30 - 08:00[/TD]
[TD]Night Time[/TD]
[/TR]
</tbody>[/TABLE]
Example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Employee name[/TD]
[TD]Work Time[/TD]
[TD]Identification[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Andrew[/TD]
[TD]04:00 - 06:00[/TD]
[TD]Night Time[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Bernie[/TD]
[TD]05:00 - 09:00[/TD]
[TD]Night Time[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Charles[/TD]
[TD]04:00 - 12:00[/TD]
[TD]Night Time[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Diana[/TD]
[TD]10:00 - 18:00[/TD]
[TD]Day Time[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Earl[/TD]
[TD]20:00 - 02:00[/TD]
[TD]Night Time[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Fergie[/TD]
[TD]22:30 - 08:00[/TD]
[TD]Night Time[/TD]
[/TR]
</tbody>[/TABLE]