tuyetngapt
New Member
- Joined
- Oct 2, 2013
- Messages
- 5
[TABLE="width: 757"]
<colgroup><col><col span="2"><col><col span="2"><col span="3"><col span="3"><col span="3"><col span="3"><col span="3"><col span="3"><col></colgroup><tbody>[TR]
[TD]Mon
[/TD]
[TD]Mon[/TD]
[TD]Mon[/TD]
[TD]Tue[/TD]
[TD]Tue[/TD]
[TD]Tue[/TD]
[TD]Wed[/TD]
[TD]Wed[/TD]
[TD]Wed[/TD]
[TD]Thu[/TD]
[TD]Thu[/TD]
[TD]Thu[/TD]
[TD]Fri[/TD]
[TD]Fri[/TD]
[TD]Fri[/TD]
[TD]Sat[/TD]
[TD]Sat[/TD]
[TD]Sat[/TD]
[TD]Sun[/TD]
[TD]Sun[/TD]
[TD]Sun[/TD]
[TD]Mon[/TD]
[TD]Mon[/TD]
[TD]Mon[/TD]
[TD]Tue[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]2[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]5[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]1[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD] [/TD]
[TD]x[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD] [/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD] [/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[/TR]
</tbody>[/TABLE]
The workers works 2 shift: morning and afternoon, and they sometime work overtime at night (counted by hours).
1>I want to set up the formula to count the working days for the worker to count the normal working days (exclude overtime and Sunday)
{=COUNT(IF((A1:Y1<>"Sun"),A2:Y2,0))/2} (array formula)
The correct answer should be 7.5 but it turns out 5.
2>I count working days in sunday by {=COUNT(IF((A1:Y1="Sun"),A2:Y2,0))/2} ==>the answer is 11.5 while the correct one should be 1.
3>I want to add the overtime working by =SUMIF(A2:Y2,ISNUMBER(A2:Y2))/8 and it does not work also. (the right result should be 8h)
Can anybody help me to fix this??
Thanks alot.
<colgroup><col><col span="2"><col><col span="2"><col span="3"><col span="3"><col span="3"><col span="3"><col span="3"><col span="3"><col></colgroup><tbody>[TR]
[TD]Mon
[/TD]
[TD]Mon[/TD]
[TD]Mon[/TD]
[TD]Tue[/TD]
[TD]Tue[/TD]
[TD]Tue[/TD]
[TD]Wed[/TD]
[TD]Wed[/TD]
[TD]Wed[/TD]
[TD]Thu[/TD]
[TD]Thu[/TD]
[TD]Thu[/TD]
[TD]Fri[/TD]
[TD]Fri[/TD]
[TD]Fri[/TD]
[TD]Sat[/TD]
[TD]Sat[/TD]
[TD]Sat[/TD]
[TD]Sun[/TD]
[TD]Sun[/TD]
[TD]Sun[/TD]
[TD]Mon[/TD]
[TD]Mon[/TD]
[TD]Mon[/TD]
[TD]Tue[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]2[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]5[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]1[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD] [/TD]
[TD]x[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD] [/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD] [/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[/TR]
</tbody>[/TABLE]
The workers works 2 shift: morning and afternoon, and they sometime work overtime at night (counted by hours).
1>I want to set up the formula to count the working days for the worker to count the normal working days (exclude overtime and Sunday)
{=COUNT(IF((A1:Y1<>"Sun"),A2:Y2,0))/2} (array formula)
The correct answer should be 7.5 but it turns out 5.
2>I count working days in sunday by {=COUNT(IF((A1:Y1="Sun"),A2:Y2,0))/2} ==>the answer is 11.5 while the correct one should be 1.
3>I want to add the overtime working by =SUMIF(A2:Y2,ISNUMBER(A2:Y2))/8 and it does not work also. (the right result should be 8h)
Can anybody help me to fix this??
Thanks alot.