A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
- It appears that for a leap year, the function is incorrectly calculating December's fraction as 31/365 days = 0.0849, instead of 31/366 days = 0.0847, which is incorrect.
It may seem incorrect to you because you are comparing it to a calculation method you have invented.
YEARFRAC obviously uses a different method to do the calculations.
The point is: It doesn't calculate the way you think.
Calculations in Excel involving a date and/or time are always difficult to understand, because the fact is that there is no date (or time) in Excel. A date is a sequential number, not what you see on the screen.
In particular, leap years don't matter here, if you apply your wrong YEARFRAC formulas in January, for example, you will get an error even in some non-leap years.
If you want to report this as a bug, please use the feedback function in Excel.
How do I give feedback on Microsoft Office? - Office Support
Andreas.