meghamadhulika
New Member
- Joined
- Feb 6, 2017
- Messages
- 2
i calculating some late arrivals in my company.
A person if late for 4 times, its half day i.e.- penalty 0.5
A person if late for 6 times, its full day i.e. - penalty 1.0
so I have been using the FLOOR function for the same.
for e.g. A- Number of Late Arrivals
B- Number of days penalty
with the formula-FLOOR((IF(A1<=4,(A1/4*0.5),(A1/6))),0.5)
Now my problem is, I want answers in only multiples of 0.5 but in cell B1 the answer should be 2 instead of 3.
As after every 6 days, penalty is 1 day but if we are left with 3 days of Late arrival, it should be reduced to 0 than rounded to 1.
[TABLE="class: outer_border, width: 100"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]15[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]4[/TD]
[TD].5[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]17[/TD]
[TD]2.5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]13[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
Please help me with this.
Regards,
meghamadhulika
A person if late for 4 times, its half day i.e.- penalty 0.5
A person if late for 6 times, its full day i.e. - penalty 1.0
so I have been using the FLOOR function for the same.
for e.g. A- Number of Late Arrivals
B- Number of days penalty
with the formula-FLOOR((IF(A1<=4,(A1/4*0.5),(A1/6))),0.5)
Now my problem is, I want answers in only multiples of 0.5 but in cell B1 the answer should be 2 instead of 3.
As after every 6 days, penalty is 1 day but if we are left with 3 days of Late arrival, it should be reduced to 0 than rounded to 1.
[TABLE="class: outer_border, width: 100"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]15[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]4[/TD]
[TD].5[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]17[/TD]
[TD]2.5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]13[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
Please help me with this.
Regards,
meghamadhulika