GNOME Bugzilla – Bug 630784
YEARFRAC issues
Last modified: 2010-10-03 18:14:44 UTC
(1) =yearfrac(date(2010,2,28),date(2010,2,28),0) != 0 while we get 0 for all other bases. (2) =yearfrac(date(2010,2,28),date(2011,2,28),0) != 1 (3) =yearfrac(date(2000,2,29),date(2008,2,28),0) != 8 This may be by design but it looks very suspicious.
Excel produces: 0, 1, 7.994444 So 1 and 2 are bugs, while 3 is not.
Sorry I mistyped #3. It should have been: =yearfrac(date(2000,2,29),date(2008,2,29),0) != 8
In that case, Excel produces 8.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report. Note that this fix is in libgoffice.