Hello every one ,i want your help in determine the work Shift ,because we have fixed time for all shift
3 Shift IN The Work | |||
4:00 PM | TO | 7:00 AM | First Shift |
12:00 AM | TO | 3:00 PM | Second Shift |
8:00 AM | TO | 11:00 PM | Third Shift |
Code:
=IF(AND(G2>=$X$5,$L2=$Z$3),$Y$5,IF(AND(G2<=$V$5,$L2=$Z$4),$Y$5,IF(AND(G2>=$X$7,$L2=$Z$3),$Y$7,IF(AND(G2<=$V$7,$L2=$Z$4),$Y$7,""))))