Hello. Brand new to this forum as I have exhausted my research on the web for a solution.
I am using the following formula to calculate the period between 2 dates and then ROUNDUP to the next whole number in years with a goal of employee seniority measured in years (< 1 year equals 1, >= 1 but <2 equals 2, etc.) Basically, the result should return 3 on the 2 year anniversary date of an employee's hiring.
=ROUNDUP(((YEAR(A10)-YEAR($B$2))*12+MONTH(A10)-MONTH($B$2))/12,0)
$B$2 = 1/2/2006
In this example, when A10 = 1/1/2012 the result is 6
When A10 = 1/2/2012 the result is also 6 which would be expected. I guess I am looking to add 1 year to a result that would be a whole number prior to the application of ROUNDUP.
HOW CAN I MODIFY THIS FORMULA TO ENSURE THE EXAMPLE WITH A10=1/2/2012 RETURNS A RESULT OF 7 INSTEAD OF 6?
Thanks in advance for any help you folks can provide.
Regards,
Brian
Bookmarks