I am trying to calculate annual leave entitlement for staff as of 1st day 1st month of each year. Cell B4 with todays date will give him 10 years service but as of 1/1/2017 he would get 9 years service entitlement.
B4 displays fine C4 shows correct 9 years entitlement but D4 is showing 10 years entitlement because the formula is showing the now date function.
How do i change this to calculate from 1/1/2017. i have tried every calculation and function name but comes up error each time
CELL B4
23/09/2007
CELL C4
=DATEDIF(B4,DATE(2017,1,1),"y")
CELL D4
=LOOKUP(DATEDIF(B4,NOW(),"Y"),{0,"less than 1 year";1,22;2,22;3,23;4,23;5,24;6,24;7,24;8,24;9,24;10,25})
B4 displays fine C4 shows correct 9 years entitlement but D4 is showing 10 years entitlement because the formula is showing the now date function.
How do i change this to calculate from 1/1/2017. i have tried every calculation and function name but comes up error each time
CELL B4
23/09/2007
CELL C4
=DATEDIF(B4,DATE(2017,1,1),"y")
CELL D4
=LOOKUP(DATEDIF(B4,NOW(),"Y"),{0,"less than 1 year";1,22;2,22;3,23;4,23;5,24;6,24;7,24;8,24;9,24;10,25})