View Single Post
 
Old 03-06-2022, 08:31 PM
Marcia's Avatar
Marcia Marcia is offline Windows 10 Office 2019
Expert
 
Join Date: May 2018
Location: Philippines
Posts: 551
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default Calculate total services of an employee by year, month and days

Hi. I use the below formula to calculate the number of years, months and days that an employee has served in our agency. My problem is how to edit the formula so that the 31 or 30 days should be included in the months, not days.
=DATEDIF([@[First Day of Service]],[@[Last Day of Service]],"Y")&" yrs, "&DATEDIF([@[First Day of Service]],[@[Last Day of Service]],"ym")&" mos, "&DATEDIF([@[First Day of Service]],[@[Last Day of Service]],"md")+1&" days"
Thank you.
Attached Files
File Type: xlsx Service.xlsx (11.3 KB, 10 views)
Reply With Quote