I have a formula that I use to get the length of employment for someone, however, I would really love it there was a way to supress parts if the results is a 0.
The formula I am using is:
=DATEDIF([@[Hire Date]],[@[Term Date]],"Y")&" year(s) "&DATEDIF([@[Hire Date]],[@[Term Date]],"ym")&" month(s) "&DATEDIF([@[Hire Date]],[@[Term Date]],"md")&" day(s) "
I the year, month, or days is 0, I don't want to see it. So if someone has been employed for only 90 days, I don't want to see 0 years, 0 months, 90 days. I just want to see 90 days.
Help?
Bookmarks