KyleOliver
New Member
- Joined
- Apr 16, 2016
- Messages
- 31
Re: How to calulate hours worked on Sundays in a specific month
Hi,
I would like to know how to add all hours worked on the sundays in a month.
An employee might not work every Sunday in a month. Some employees will work one Sunday, others might work 2 or more and some might not work any Sundays in a month.
My table looks as follows;
<strike></strike><strike></strike>[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Week Day<strike></strike>[/TD]
[TD]<strike></strike>Punch Date<strike></strike>[/TD]
[TD]<strike></strike>Time In<strike></strike>[/TD]
[TD]<strike></strike>Lunch Start<strike></strike>[/TD]
[TD]<strike></strike>Lunch End<strike></strike>[/TD]
[TD]<strike></strike>Time Out<strike></strike>[/TD]
[TD]<strike></strike>Hours Worked<strike></strike>[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Monday[/TD]
[TD]01 Aug 2018[/TD]
[TD]08:00[/TD]
[TD]12:00[/TD]
[TD]13:00[/TD]
[TD]16:00[/TD]
[TD]7:00[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Tuesday[/TD]
[TD]02 Aug 2018[/TD]
[TD]
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[/TR]
[TR]
[TD]4[/TD]
[TD]Wednesday[/TD]
[TD]
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[/TR]
[TR]
[TD]5[/TD]
[TD]Thursday[/TD]
[TD]
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[/TR]
[TR]
[TD]6[/TD]
[TD]Friday[/TD]
[TD]
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[/TR]
[TR]
[TD]7[/TD]
[TD]Saturday[/TD]
[TD]
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[/TR]
[TR]
[TD]8[/TD]
[TD]Sunday[/TD]
[TD]
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[/TR]
[TR]
[TD]9[/TD]
[TD]Monday[/TD]
[TD]
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[/TR]
[TR]
[TD]10[/TD]
[TD]Tuesday[/TD]
[TD]
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[/TR]
[TR]
[TD]11[/TD]
[TD]Wednesday[/TD]
[TD]
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[/TR]
[TR]
[TD]12[/TD]
[TD]Thursday[/TD]
[TD]
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[/TR]
[TR]
[TD]13[/TD]
[TD]Friday[/TD]
[TD]
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[/TR]
[TR]
[TD]14[/TD]
[TD]Saturday[/TD]
[TD]
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[/TR]
[TR]
[TD]15[/TD]
[TD]Sunday[/TD]
[TD]
[TD]<strike></strike>[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]Monday[/TD]
[TD]
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[TD]<strike></strike>
[/TR]
</tbody>[/TABLE]
<strike></strike>
How do I calculate just the hours worked on a Sunday?
Do I use a SUMIF / SUMIFS / SUMPRODUCT / MATCH / INDEX?
I have no idea, please someone help?
Regards,
Kyle
Hi,
I would like to know how to add all hours worked on the sundays in a month.
An employee might not work every Sunday in a month. Some employees will work one Sunday, others might work 2 or more and some might not work any Sundays in a month.
My table looks as follows;
<strike></strike><strike></strike>[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Week Day<strike></strike>[/TD]
[TD]<strike></strike>Punch Date<strike></strike>[/TD]
[TD]<strike></strike>Time In<strike></strike>[/TD]
[TD]<strike></strike>Lunch Start<strike></strike>[/TD]
[TD]<strike></strike>Lunch End<strike></strike>[/TD]
[TD]<strike></strike>Time Out<strike></strike>[/TD]
[TD]<strike></strike>Hours Worked<strike></strike>[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Monday[/TD]
[TD]01 Aug 2018[/TD]
[TD]08:00[/TD]
[TD]12:00[/TD]
[TD]13:00[/TD]
[TD]16:00[/TD]
[TD]7:00[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Tuesday[/TD]
[TD]02 Aug 2018[/TD]
[TD]
08:00
<strike></strike>[/TD][TD]<strike></strike>
12:00
<strike></strike>[/TD][TD]<strike></strike>
13:00
<strike></strike>[/TD][TD]<strike></strike>
16:00
<strike></strike>[/TD][TD]<strike></strike>
7:00
<strike></strike>[/TD][/TR]
[TR]
[TD]4[/TD]
[TD]Wednesday[/TD]
[TD]
03 Aug 2018
<strike></strike>[/TD][TD]<strike></strike>
08:00
<strike></strike>[/TD][TD]<strike></strike>
12:00
<strike></strike>[/TD][TD]<strike></strike>
13:00
<strike></strike>[/TD][TD]<strike></strike>
16:00
<strike></strike>[/TD][TD]<strike></strike>
7:00
<strike></strike>[/TD][/TR]
[TR]
[TD]5[/TD]
[TD]Thursday[/TD]
[TD]
04 Aug 2018
<strike></strike>[/TD][TD]<strike></strike>
08:00
<strike></strike>[/TD][TD]<strike></strike>
12:00
<strike></strike>[/TD][TD]<strike></strike>
13:00
<strike></strike>[/TD][TD]<strike></strike>
16:00
<strike></strike>[/TD][TD]<strike></strike>
7:00
<strike></strike>[/TD][/TR]
[TR]
[TD]6[/TD]
[TD]Friday[/TD]
[TD]
05 Aug 2018
<strike></strike>[/TD][TD]<strike></strike>
08:00
<strike></strike>[/TD][TD]<strike></strike>
12:00
<strike></strike>[/TD][TD]<strike></strike>
13:00
<strike></strike>[/TD][TD]<strike></strike>
16:00
<strike></strike>[/TD][TD]<strike></strike>
7:00
<strike></strike>[/TD][/TR]
[TR]
[TD]7[/TD]
[TD]Saturday[/TD]
[TD]
06 Aug 2018
<strike></strike>[/TD][TD]<strike></strike>
08:00
<strike></strike>[/TD][TD]<strike></strike>
12:00
<strike></strike>[/TD][TD]<strike></strike>
13:00
<strike></strike>[/TD][TD]<strike></strike>
16:00
<strike></strike>[/TD][TD]<strike></strike>
7:00
<strike></strike>[/TD][/TR]
[TR]
[TD]8[/TD]
[TD]Sunday[/TD]
[TD]
07 Aug 2018
<strike></strike>[/TD][TD]<strike></strike>
08:00
<strike></strike>[/TD][TD]<strike></strike>
12:00
<strike></strike>[/TD][TD]<strike></strike>
13:00
<strike></strike>[/TD][TD]<strike></strike>
16:00
<strike></strike>[/TD][TD]<strike></strike>
7:00
<strike></strike>[/TD][/TR]
[TR]
[TD]9[/TD]
[TD]Monday[/TD]
[TD]
08 Aug 2018
<strike></strike>[/TD][TD]<strike></strike>
08:00
<strike></strike>[/TD][TD]<strike></strike>
12:00
<strike></strike>[/TD][TD]<strike></strike>
13:00
<strike></strike>[/TD][TD]<strike></strike>
16:00
<strike></strike>[/TD][TD]<strike></strike>
7:00
<strike></strike>[/TD][/TR]
[TR]
[TD]10[/TD]
[TD]Tuesday[/TD]
[TD]
09 Aug 2018
<strike></strike>[/TD][TD]<strike></strike>
08:00
<strike></strike>[/TD][TD]<strike></strike>
12:00
<strike></strike>[/TD][TD]<strike></strike>
13:00
<strike></strike>[/TD][TD]<strike></strike>
16:00
<strike></strike>[/TD][TD]<strike></strike>
7:00
<strike></strike>[/TD][/TR]
[TR]
[TD]11[/TD]
[TD]Wednesday[/TD]
[TD]
10 Aug 2018
<strike></strike>[/TD][TD]<strike></strike>
08:00
<strike></strike>[/TD][TD]<strike></strike>
12:00
<strike></strike>[/TD][TD]<strike></strike>
13:00
<strike></strike>[/TD][TD]<strike></strike>
16:00
<strike></strike>[/TD][TD]<strike></strike>
7:00
<strike></strike>[/TD][/TR]
[TR]
[TD]12[/TD]
[TD]Thursday[/TD]
[TD]
11 Aug 2018
<strike></strike>[/TD][TD]<strike></strike>
08:00
<strike></strike>[/TD][TD]<strike></strike>
12:00
<strike></strike>[/TD][TD]<strike></strike>
13:00
<strike></strike>[/TD][TD]<strike></strike>
16:00
<strike></strike>[/TD][TD]<strike></strike>
7:00
<strike></strike>[/TD][/TR]
[TR]
[TD]13[/TD]
[TD]Friday[/TD]
[TD]
12 Aug 2018
<strike></strike>[/TD][TD]<strike></strike>
08:00
<strike></strike>[/TD][TD]<strike></strike>
12:00
<strike></strike>[/TD][TD]<strike></strike>
13:00
<strike></strike>[/TD][TD]<strike></strike>
16:00
<strike></strike>[/TD][TD]<strike></strike>
7:00
<strike></strike>[/TD][/TR]
[TR]
[TD]14[/TD]
[TD]Saturday[/TD]
[TD]
13 Aug 2018
<strike></strike>[/TD][TD]<strike></strike>
08:00
<strike></strike>[/TD][TD]<strike></strike>
12:00
<strike></strike>[/TD][TD]<strike></strike>
13:00
<strike></strike>[/TD][TD]<strike></strike>
16:00
<strike></strike>[/TD][TD]<strike></strike>
7:00
<strike></strike>[/TD][/TR]
[TR]
[TD]15[/TD]
[TD]Sunday[/TD]
[TD]
14 Aug 2018
<strike></strike>[/TD][TD]<strike></strike>[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]Monday[/TD]
[TD]
15 Aug 2018
<strike></strike>[/TD][TD]<strike></strike>
08:00
<strike></strike>[/TD][TD]<strike></strike>
12:00
<strike></strike>[/TD][TD]<strike></strike>
13:00
<strike></strike>[/TD][TD]<strike></strike>
16:00
<strike></strike>[/TD][TD]<strike></strike>
7:00
<strike></strike>[/TD][/TR]
</tbody>[/TABLE]
<strike></strike>
How do I calculate just the hours worked on a Sunday?
Do I use a SUMIF / SUMIFS / SUMPRODUCT / MATCH / INDEX?
I have no idea, please someone help?
Regards,
Kyle