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
<tbody>
</tbody>
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
Store | Date Worked | Day Worked | Time Start | Time Finish | Unpaid Break | Hours Worked | Pay Period | Pay Day |
Store 1 | 28/09/2015 | Monday | 9:00 AM | 5:30 PM | 0.5 | 8 | 1 | |
Store 1 | 29/09/2015 | Tuesday | 9:00 AM | 5:30 PM | 0.5 | 8 | 1 | |
Day Off | 30/09/2015 | Wednesday | 9:00 AM | 5:30 PM | 0.5 | 8 | 1 | |
Store 1 | 1/10/2015 | Thursday | 9:00 AM | 5:30 PM | 0.5 | 8 | 1 | Yes |
Store 1 | 2/10/2015 | Friday | 9:00 AM | 5:30 PM | 0.5 | 8 | 2 | |
Day Off | 3/10/2015 | Saturday | Off | Off | 0 | 2 | ||
Day Off | 4/10/2015 | Sunday | Off | Off | 0 | 2 | ||
Day Off | 5/10/2015 | Monday | 9:00 AM | 5:30 PM | 0.5 | 8 | 2 | |
Store 1 | 6/10/2015 | Tuesday | 9:00 AM | 5:30 PM | 0.5 | 8 | 2 | |
Store 1 | 7/10/2015 | Wednesday | 9:00 AM | 5:30 PM | 0.5 | 8 | 2 | |
Store 1 | 8/10/2015 | Thursday | 9:00 AM | 5:00 PM | 0.5 | 7.5 | 2 | |
Store 1 | 9/10/2015 | Friday | 9:00 AM | 5:30 PM | 0.5 | 8 | 2 | |
Store 1 | 10/10/2015 | Saturday | Off | Off | 0 | 2 | ||
Store 1 | 11/10/2015 | Sunday | Off | Off | 0 | 2 | ||
Day Off | 12/10/2015 | Monday | Off | Off | 0 | 2 | ||
Store 1 | 13/10/2015 | Tuesday | 9:00 AM | 5:30 PM | 0.5 | 8 | 2 | |
Store 1 | 14/10/2015 | Wednesday | 9:00 AM | 5:30 PM | 0.5 | 8 | 2 | |
Store 1 | 15/10/2015 | Thursday | 9:00 AM | 6:30 PM | 0.5 | 9 | 2 | Yes |
Store 1 | 16/10/2015 | Friday | 9:00 AM | 5:30 PM | 0.5 | 8 | 3 | |
Store 1 | 17/10/2015 | Saturday | Off | Off | 0 | 3 | ||
Store 1 | 18/10/2015 | Sunday | Off | Off | 0 | 3 | ||
Store 1 | 19/10/2015 | Monday | 9:00 AM | 5:30 PM | 0.5 | 8 | 3 | |
Store 1 | 20/10/2015 | Tuesday | 9:00 AM | 5:30 PM | 0.5 | 8 | 3 | |
Store 1 | 21/10/2015 | Wednesday | 9:00 AM | 5:30 PM | 0.5 | 8 | 3 | |
Store 1 | 22/10/2015 | Thursday | 9:00 AM | 5:00 PM | 0.5 | 7.5 | 3 | |
Store 1 | 23/10/2015 | Friday | 9:00 AM | 5:30 PM | 0.5 | 8 | 3 | |
Day Off | 24/10/2015 | Saturday | Off | Off | 0 | 3 | ||
Day Off | 25/10/2015 | Sunday | Off | Off | 0 | 3 | ||
Store 1 | 26/10/2015 | Monday | Off | Off | 0.5 | 3 | ||
Store 1 | 27/10/2015 | Tuesday | Off | Off | 0.5 | 3 | ||
Store 1 | 28/10/2015 | Wednesday | 9:00 AM | 5:30 PM | 0.5 | 8 | 3 | |
Store 1 | 29/10/2015 | Thursday | 9:00 AM | 5:00 PM | 0.5 | 7.5 | 3 | Yes |
<tbody>
</tbody>
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: