The formula im struggle with which seems to round up some of the week entitlements is...
=IF(E2<2,0,SUMPRODUCT(LOOKUP(ROW(INDIRECT("1:"&MIN(E2,20)))+C2-MIN(E2,20),{0,22,41;0.5,1,1.5})))
Header are: and its the redundancy entitlement that is is out by 0.5 of a week on some staff (not consistant)
FWIW, all of your results look aligned to the gov logic, at least to me
if you extrapolate your data per row, and calculate each year manually, and aggregate, you will get the same results; which do you think are wrong?
Above said, you could 'simplify' your current formula a little (and remove the volatility) with:
as per your existing calculation, the above creates an array of ages, 1 for each year of service (capped at 20 years), applies the relevant allowance for each of those values, and aggregates the results.
Bookmarks