Hi. I have searched as much as possible for an answer but to no avail so would appreciate if anyone could help please. I am using Excel 2007.
I am trying to calculate the difference between 2 historic dates, inclusive of both dates and I am using the DateDif formula.
I need to calculate from (example) 1/9/2006 to 15/4/2012, ideally in 2 seperate fields, years and days.
I calculate manually that should be 5 years and 228 days (including the 1/9/06 and 15/4//2012).
DATEDIF(A2,B2,"y") gives 5 years - fine. DATEDIF(A2,B2,"yd") gives 226 days. However, If I changed the year of my first date to 2007 I get 5 years and 227 days!
I appreciate that I need to +1 to include the start and end date. And I understand that 2012 being a leap year is not taken in to account as it is based on the first date - but 2006 nor 2007 were not leap years!
I can't see that I am missing anything obvious or calculating incorrectly so any suggestions appreciated!
Thanks
I am trying to calculate the difference between 2 historic dates, inclusive of both dates and I am using the DateDif formula.
I need to calculate from (example) 1/9/2006 to 15/4/2012, ideally in 2 seperate fields, years and days.
I calculate manually that should be 5 years and 228 days (including the 1/9/06 and 15/4//2012).
DATEDIF(A2,B2,"y") gives 5 years - fine. DATEDIF(A2,B2,"yd") gives 226 days. However, If I changed the year of my first date to 2007 I get 5 years and 227 days!
I appreciate that I need to +1 to include the start and end date. And I understand that 2012 being a leap year is not taken in to account as it is based on the first date - but 2006 nor 2007 were not leap years!
I can't see that I am missing anything obvious or calculating incorrectly so any suggestions appreciated!
Thanks