vishal0589
Board Regular
- Joined
- May 13, 2014
- Messages
- 63
Hi friends,
Can you help in this condition?
I am working on a duty roster. I need a formula with following conditions:
Shifts:
6:00 AM To 2:00 PM
2:00 PM To 10:00 PM
10:00 PM To 6:00 AM
9:00 AM To 5:00 PM
8:00 AM To 8:00 PM
8:00 PM To 8:00 AM
and so on.
A worker can work upto 24 hrs a day.
Normal duty could be of 8hrs or 12 Hrs.
If staff works for normal duty(1 shift) i.e. 8 hrs, then duty will be termed as "P8" (e.g: 6:00 AM To 2:00 PM)
If staff opts for overtime (4 Hrs, Fixed) , total duty would be termed as "P12" (Normal+Overtime)
If staff works for two to three shifts continuously (i.e. P8+P8 or P8+P8+P8), then total duty would be termed as "P16"
IF staff works for shift in night in dayone and his continuous duty of second shift falls under second day i.e. 1st Shift 10:00 PM To 6:00 AM (Day-1) and second shift 6:00 AM To 2:00 PM (Day-2), this would not be treated as overtime and would be charged seperately i.e, P8 for 1st shift and P8 for 2nd Shift (NOT P16)
There are 1600 staffs works on 2 to 3 shifts daily. Data have to be entered on daily basis.
I have Bold the area where I need formula to automatically fill the duty i.e. P8,P12, or P16.
Can you help in this condition?
I am working on a duty roster. I need a formula with following conditions:
Shifts:
6:00 AM To 2:00 PM
2:00 PM To 10:00 PM
10:00 PM To 6:00 AM
9:00 AM To 5:00 PM
8:00 AM To 8:00 PM
8:00 PM To 8:00 AM
and so on.
A worker can work upto 24 hrs a day.
Normal duty could be of 8hrs or 12 Hrs.
If staff works for normal duty(1 shift) i.e. 8 hrs, then duty will be termed as "P8" (e.g: 6:00 AM To 2:00 PM)
If staff opts for overtime (4 Hrs, Fixed) , total duty would be termed as "P12" (Normal+Overtime)
If staff works for two to three shifts continuously (i.e. P8+P8 or P8+P8+P8), then total duty would be termed as "P16"
IF staff works for shift in night in dayone and his continuous duty of second shift falls under second day i.e. 1st Shift 10:00 PM To 6:00 AM (Day-1) and second shift 6:00 AM To 2:00 PM (Day-2), this would not be treated as overtime and would be charged seperately i.e, P8 for 1st shift and P8 for 2nd Shift (NOT P16)
There are 1600 staffs works on 2 to 3 shifts daily. Data have to be entered on daily basis.
I have Bold the area where I need formula to automatically fill the duty i.e. P8,P12, or P16.
[TABLE="width: 567"]
<colgroup><col><col><col><col><col span="3"></colgroup><tbody>[TR]
[TD]Date
[/TD]
[TD]Post Code[/TD]
[TD]Shift[/TD]
[TD]Service No[/TD]
[TD]P8
[/TD]
[TD]P12[/TD]
[TD]P16[/TD]
[/TR]
[TR]
[TD="align: right"]10/09/2014[/TD]
[TD="align: right"]1[/TD]
[TD]9:00 AM To 5:00 PM
[/TD]
[TD="align: right"]2030[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]10/09/2014[/TD]
[TD="align: right"]2[/TD]
[TD]6:00 AM To 2:00 PM[/TD]
[TD="align: right"]2030[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]11/09/2014[/TD]
[TD="align: right"]3[/TD]
[TD]2:00 PM To 10:00 PM[/TD]
[TD="align: right"]2284
[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]12/09/2014[/TD]
[TD="align: right"]4[/TD]
[TD]10:00 PM To 6:00 AM[/TD]
[TD="align: right"]2030[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]13/09/2014[/TD]
[TD="align: right"]5[/TD]
[TD]9:00 AM To 5:00 PM[/TD]
[TD="align: right"]2030[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]10/09/2014[/TD]
[TD="align: right"]6[/TD]
[TD]8:00 AM To 8:00 PM[/TD]
[TD="align: right"]2030[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]10/09/2014[/TD]
[TD="align: right"]7[/TD]
[TD]8:00 PM To 8:00 AM[/TD]
[TD="align: right"]2030[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]10/09/2014[/TD]
[TD="align: right"]8[/TD]
[TD]9:00 AM To 5:00 PM[/TD]
[TD="align: right"]2284
[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]10/09/2014[/TD]
[TD="align: right"]9[/TD]
[TD]6:00 AM To 2:00 PM[/TD]
[TD="align: right"]2250[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]10/09/2014[/TD]
[TD="align: right"]10[/TD]
[TD]2:00 PM To 10:00 PM[/TD]
[TD="align: right"]2030[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]10/09/2014[/TD]
[TD="align: right"]11[/TD]
[TD]10:00 PM To 6:00 AM[/TD]
[TD="align: right"]2284[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
Thanks in Advance,
Vishal Srivastava
Vishal Srivastava