I am using Excel 2000 to calculate the pay for worker and there are 4 possibility:
1.If actual work time is within 5 minutes under rostered time, pay rostered time
2.If actual work time is 5 minutes more under rostered time, pay actual work time
3.If actual work time is within 5 minutes over rostered time, pay actual work time
4.If actual work time is 5 minutes more than rostered time, pay rostered time plus 5 minutes.
For example:
Case1:
Rostered Time: 1.50 (1 hour 30 minutes convert to decimal =1.50)
Actual work time: 1.47 ( 1 hour 28 minutes)
Pay: 1.50
Case2:
Rostered Time: 1.50
Actual Work time: 1.37 (1 hour 22 minutes)
Pay:1.37
Case3:
Rostered Time: 1.50
Actual Work Time: 1.56 (1 hour 34 minutes)
Pay: 1.56
Case4:
Rostered Time:1.50
Actual Work Time: 1.60 (1 hour 37 minutes)
Pay: 1.58
Note that the rostered hour is not always 1.5. It can be 1, or 2, or 0.25 or 0.50, or 0.75 depend on different service.
The formula below only works when the actual work time is 5 minutes over than rostered time:
K2=Actual Work time, L2=Rostered Time
=IF($K2-$L2>=0.08,$L2+0 .08,IF($L2-$K2<=0.08,$L2,$ K2))
The formula below won't pay up to rostered time if the actual work less than rostered time:
=IF((K59-L59<=0.08),K59, IF((K59-L59>0.08),L59+0 .08,IF((L59-K59<=0.08),L59, IF((L59-K59>0.08),K59," "))))
Can anyone correct the formula for me please? or suggest a different formula altogether? Appreciate it.
1.If actual work time is within 5 minutes under rostered time, pay rostered time
2.If actual work time is 5 minutes more under rostered time, pay actual work time
3.If actual work time is within 5 minutes over rostered time, pay actual work time
4.If actual work time is 5 minutes more than rostered time, pay rostered time plus 5 minutes.
For example:
Case1:
Rostered Time: 1.50 (1 hour 30 minutes convert to decimal =1.50)
Actual work time: 1.47 ( 1 hour 28 minutes)
Pay: 1.50
Case2:
Rostered Time: 1.50
Actual Work time: 1.37 (1 hour 22 minutes)
Pay:1.37
Case3:
Rostered Time: 1.50
Actual Work Time: 1.56 (1 hour 34 minutes)
Pay: 1.56
Case4:
Rostered Time:1.50
Actual Work Time: 1.60 (1 hour 37 minutes)
Pay: 1.58
Note that the rostered hour is not always 1.5. It can be 1, or 2, or 0.25 or 0.50, or 0.75 depend on different service.
The formula below only works when the actual work time is 5 minutes over than rostered time:
K2=Actual Work time, L2=Rostered Time
=IF($K2-$L2>=0.08,$L2+0 .08,IF($L2-$K2<=0.08,$L2,$ K2))
The formula below won't pay up to rostered time if the actual work less than rostered time:
=IF((K59-L59<=0.08),K59, IF((K59-L59>0.08),L59+0 .08,IF((L59-K59<=0.08),L59, IF((L59-K59>0.08),K59," "))))
Can anyone correct the formula for me please? or suggest a different formula altogether? Appreciate it.
Comment