I'm attempting to calculate the dates for payroll for contract labor. Our payroll is on the 1st and 15th of the month.
Contract dates are:
A1 has the Start Date: 6/23/2019
A2 has he End Date: 8/17/2019
I'm using this formula to calculate the number of pay periods:
=SUMPRODUCT(--(DAY(ROW(INDIRECT(A1&":"&A2)))={1,15}))
Which is returning the value of 4 (the number of pay periods between the dates)
However, since the end date is 2 days into the next pay period, there are actually 5 pay periods.
07/01/2019
07/15/2019
08/01/2019
08/15/2019
09/01/2019
Is there a formula that can calculate the 5 pay periods and return the pay date of each pay period based on the contract start and end dates?
Contract dates are:
A1 has the Start Date: 6/23/2019
A2 has he End Date: 8/17/2019
I'm using this formula to calculate the number of pay periods:
=SUMPRODUCT(--(DAY(ROW(INDIRECT(A1&":"&A2)))={1,15}))
Which is returning the value of 4 (the number of pay periods between the dates)
However, since the end date is 2 days into the next pay period, there are actually 5 pay periods.
07/01/2019
07/15/2019
08/01/2019
08/15/2019
09/01/2019
Is there a formula that can calculate the 5 pay periods and return the pay date of each pay period based on the contract start and end dates?
Last edited: