Hi Everyone,
Can you pls help me figure out what is wrong with my formula? I wanted to get the exact, years, months, and days of service of our employees. I was able to do this in gsheet, but having a hard time here.
=YEAR(TODAY()) - YEAR([Date Hired]10) - IF(DATE(YEAR([Date Hired]10), MONTH(TODAY()), DAY(TODAY())) < [Date Hired]10, 1, 0) + " years " + IF(MONTH(TODAY()) - MONTH([Date Hired]10) < 0, 12 + MONTH(TODAY()) - MONTH([Date Hired]10), MONTH(TODAY()) - MONTH([Date Hired]10)) + " months " + IF(DAY(TODAY()) - DAY([Date Hired]10) < 0, 30 + DAY(TODAY()) - DAY([Date Hired]10), DAY(TODAY()) - DAY([Date Hired]10)) + " days"
Calculating inside the box is correct, but the rest seems to count backward. What do I need to change here? Appreciate your help.