I have a task that requires calculating the working periods of employees up to date.
I use =DATEDIF(C3;TODAY();"y")&" year"&DATEDIF(C3;TODAY();"ym")&" month"&DATEDIF(C3;TODAY();"md")&" day" and the result is something like "15 years 2 months XX days"
What I want to achieve is rounding up the days, returning the result to something like "15 years 3 months" if the XX is bigger than 15, and "15 years 2 months" if otherwise.
How do I do this? Thanks.
I did think about rounding the initial dates first, then use the =DATEIF... later, but thought it might not as accurate.
I use =DATEDIF(C3;TODAY();"y")&" year"&DATEDIF(C3;TODAY();"ym")&" month"&DATEDIF(C3;TODAY();"md")&" day" and the result is something like "15 years 2 months XX days"
What I want to achieve is rounding up the days, returning the result to something like "15 years 3 months" if the XX is bigger than 15, and "15 years 2 months" if otherwise.
How do I do this? Thanks.
I did think about rounding the initial dates first, then use the =DATEIF... later, but thought it might not as accurate.