In C1 I have the beginning date of the first pay period an employee commenced work, e.g. 18/09/2015. In C2 I have the end date of that first pay period, e.g. 01/10/2015. I thought these would be useful as formula helpers.
The records begin at row 6, with the date the employee began working at C6, e.g. 28/09/2015, C7 = 29/09/2015, C8 = 30/09/2015, C9 = 01/10/2015 and so on. as shown below.
I'd like a formula in the I column (Pay Period) to check the date in the C column (Date Worked) and determine the pay period number for the employee, e.g. all dates in column C between (and including) 18/09/2015 and 01/10/2015 should return a '1' result in column I (even though the employee began after the 18/09/2015). All dates in column C between (and including) 02/10/2015 and 15/10/2015 should return the number '2' to the formula in column I, and so on.
Basically, as shown below, the number in column I increments by 1 every 14 days, but the employee started in the middle of the first pay period, so there are only 4 cells in column I that have the number 1.
I can't figure out for the life of me how to account for that part period in a formula.
Sample data set is below The "Store" column is B
[TABLE="width: 750"]
<tbody>[TR]
[TD]Store[/TD]
[TD]Date Worked[/TD]
[TD]Day Worked[/TD]
[TD]Time Start[/TD]
[TD]Time Finish[/TD]
[TD]Unpaid Break[/TD]
[TD]Hours Worked[/TD]
[TD]Pay Period[/TD]
[TD]Pay Day[/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]28/09/2015[/TD]
[TD]Monday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]29/09/2015[/TD]
[TD]Tuesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Day Off[/TD]
[TD]30/09/2015[/TD]
[TD]Wednesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]1/10/2015[/TD]
[TD]Thursday[/TD]
[TD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]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]10/10/2015[/TD]
[TD]Saturday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]11/10/2015[/TD]
[TD]Sunday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Day Off[/TD]
[TD]12/10/2015[/TD]
[TD]Monday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]13/10/2015[/TD]
[TD]Tuesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]14/10/2015[/TD]
[TD]Wednesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]15/10/2015[/TD]
[TD]Thursday[/TD]
[TD]9:00 AM[/TD]
[TD]6:30 PM[/TD]
[TD]0.5[/TD]
[TD]9[/TD]
[TD]2[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]16/10/2015[/TD]
[TD]Friday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]17/10/2015[/TD]
[TD]Saturday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]18/10/2015[/TD]
[TD]Sunday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]19/10/2015[/TD]
[TD]Monday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]20/10/2015[/TD]
[TD]Tuesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]21/10/2015[/TD]
[TD]Wednesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]22/10/2015[/TD]
[TD]Thursday[/TD]
[TD]9:00 AM[/TD]
[TD]5:00 PM[/TD]
[TD]0.5[/TD]
[TD]7.5[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]23/10/2015[/TD]
[TD]Friday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Day Off[/TD]
[TD]24/10/2015[/TD]
[TD]Saturday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Day Off[/TD]
[TD]25/10/2015[/TD]
[TD]Sunday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]26/10/2015[/TD]
[TD]Monday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0.5[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]27/10/2015[/TD]
[TD]Tuesday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0.5[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]28/10/2015[/TD]
[TD]Wednesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]29/10/2015[/TD]
[TD]Thursday[/TD]
[TD]9:00 AM[/TD]
[TD]5:00 PM[/TD]
[TD]0.5[/TD]
[TD]7.5[/TD]
[TD]3[/TD]
[TD]Yes[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be much appreciated as it's been a few years since I picked up Excel and I'm way rusty. Using Excel 2010.
The records begin at row 6, with the date the employee began working at C6, e.g. 28/09/2015, C7 = 29/09/2015, C8 = 30/09/2015, C9 = 01/10/2015 and so on. as shown below.
I'd like a formula in the I column (Pay Period) to check the date in the C column (Date Worked) and determine the pay period number for the employee, e.g. all dates in column C between (and including) 18/09/2015 and 01/10/2015 should return a '1' result in column I (even though the employee began after the 18/09/2015). All dates in column C between (and including) 02/10/2015 and 15/10/2015 should return the number '2' to the formula in column I, and so on.
Basically, as shown below, the number in column I increments by 1 every 14 days, but the employee started in the middle of the first pay period, so there are only 4 cells in column I that have the number 1.
I can't figure out for the life of me how to account for that part period in a formula.
Sample data set is below The "Store" column is B
[TABLE="width: 750"]
<tbody>[TR]
[TD]Store[/TD]
[TD]Date Worked[/TD]
[TD]Day Worked[/TD]
[TD]Time Start[/TD]
[TD]Time Finish[/TD]
[TD]Unpaid Break[/TD]
[TD]Hours Worked[/TD]
[TD]Pay Period[/TD]
[TD]Pay Day[/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]28/09/2015[/TD]
[TD]Monday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]29/09/2015[/TD]
[TD]Tuesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Day Off[/TD]
[TD]30/09/2015[/TD]
[TD]Wednesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]1/10/2015[/TD]
[TD]Thursday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]1[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]2/10/2015[/TD]
[TD]Friday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Day Off[/TD]
[TD]3/10/2015[/TD]
[TD]Saturday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Day Off[/TD]
[TD]4/10/2015[/TD]
[TD]Sunday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Day Off[/TD]
[TD]5/10/2015[/TD]
[TD]Monday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]6/10/2015[/TD]
[TD]Tuesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]7/10/2015[/TD]
[TD]Wednesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]8/10/2015[/TD]
[TD]Thursday[/TD]
[TD]9:00 AM[/TD]
[TD]5:00 PM[/TD]
[TD]0.5[/TD]
[TD]7.5[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]9/10/2015[/TD]
[TD]Friday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]10/10/2015[/TD]
[TD]Saturday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]11/10/2015[/TD]
[TD]Sunday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Day Off[/TD]
[TD]12/10/2015[/TD]
[TD]Monday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]13/10/2015[/TD]
[TD]Tuesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]14/10/2015[/TD]
[TD]Wednesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]15/10/2015[/TD]
[TD]Thursday[/TD]
[TD]9:00 AM[/TD]
[TD]6:30 PM[/TD]
[TD]0.5[/TD]
[TD]9[/TD]
[TD]2[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]16/10/2015[/TD]
[TD]Friday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]17/10/2015[/TD]
[TD]Saturday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]18/10/2015[/TD]
[TD]Sunday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]19/10/2015[/TD]
[TD]Monday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]20/10/2015[/TD]
[TD]Tuesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]21/10/2015[/TD]
[TD]Wednesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]22/10/2015[/TD]
[TD]Thursday[/TD]
[TD]9:00 AM[/TD]
[TD]5:00 PM[/TD]
[TD]0.5[/TD]
[TD]7.5[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]23/10/2015[/TD]
[TD]Friday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Day Off[/TD]
[TD]24/10/2015[/TD]
[TD]Saturday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Day Off[/TD]
[TD]25/10/2015[/TD]
[TD]Sunday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]26/10/2015[/TD]
[TD]Monday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0.5[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]27/10/2015[/TD]
[TD]Tuesday[/TD]
[TD]Off[/TD]
[TD]Off[/TD]
[TD]0.5[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]28/10/2015[/TD]
[TD]Wednesday[/TD]
[TD]9:00 AM[/TD]
[TD]5:30 PM[/TD]
[TD]0.5[/TD]
[TD]8[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store 1[/TD]
[TD]29/10/2015[/TD]
[TD]Thursday[/TD]
[TD]9:00 AM[/TD]
[TD]5:00 PM[/TD]
[TD]0.5[/TD]
[TD]7.5[/TD]
[TD]3[/TD]
[TD]Yes[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be much appreciated as it's been a few years since I picked up Excel and I'm way rusty. Using Excel 2010.
Last edited: