First of all I unmerged a lot of cells that I would be working with as merged cells can cause a lot of confusion if not problems with calculations.
I inserted a column between TO and Eligible called Years Serv. and entered this formula in J7 to calculate years of service.:
Formula:
=DATEDIF($H$2,H7,"y")*1
In K7 I entered this formula to reset the days Eligible when an anniversary of service is passed. If the anniversary has passed, days taken since the anniversary are subtracted from the Eligible:
Formula:
=IF(J7="","",IF(J7>J6,5,M6))
I amended the NETWORKDAYS formula to use a cell range instead of hard-coded date serial numbers.
Formula:
=IF(K7="","",NETWORKDAYS($H7,$I7,$V$6:$W$16))
Bookmarks