Hi,
Firstly, I’m an absolute novice on excel. However, I’m trying to get excel to return an accurate duration in years and months, based on a start date and end date. I found the formula below online:
=DATEDIF(A2,B2,"y")&" Years, "&DATEDIF(A2,B2,"ym")&" Months"
the issue with this formula is that it isn’t accurate when trying to establish a contract duration or length of service. It’s seems to miss a month off. For example, 1/1/19 to 31/03/2020 is calculated as 1 year, 2 months using that formula, but in real terms it’s 1 year and 3 months. It’s seems like the date has to enter in to the next month before a month registers.
Does anyone have a formula/workaround to combat this issue?
My apologies in advance if this has been posted previously.
Firstly, I’m an absolute novice on excel. However, I’m trying to get excel to return an accurate duration in years and months, based on a start date and end date. I found the formula below online:
=DATEDIF(A2,B2,"y")&" Years, "&DATEDIF(A2,B2,"ym")&" Months"
the issue with this formula is that it isn’t accurate when trying to establish a contract duration or length of service. It’s seems to miss a month off. For example, 1/1/19 to 31/03/2020 is calculated as 1 year, 2 months using that formula, but in real terms it’s 1 year and 3 months. It’s seems like the date has to enter in to the next month before a month registers.
Does anyone have a formula/workaround to combat this issue?
My apologies in advance if this has been posted previously.