
Originally Posted by
daddylonglegs
The rounding is done at the end - the discrepancy is because my formula is giving 11 pay periods at the lower amount, not 12 - perhaps the formula should refer to the last payperiod start date of the previous year, i.e. 28th December 2013, that will give the correct result
OK, I missed the part about paying 40 hours after 6 months. For a hire date of 7th October 2013, then, would there not be a 40 hour payment, then 13 payments at 40/26 and the last 5 at 80/26 (because they also hit the 1 year anniversary in October?) I make that a total of 75.
This revised formula would give those results
=ROUND(SUMPRODUCT(LOOKUP(DATEDIF(B3,DATE(2013,12,28)-14+ROW(INDIRECT("1:26"))*14,"m"),{0,6,12,60,120;0,40,80,120,160}))/26,0)+(YEAR(EDATE(B3,6))=2014)*40
The red parts would need to be changed for each year - 2014, obviously should be the year in question and the DATE part should be the last pay period start date of the previous year
Bookmarks