Excel: YEARFRAC Does Not Count Extra Day in Leap YearsID: Q89031
|
In Microsoft Excel, the YEARFRAC function does not recognize leap years, such as 1992, unless the leap date (for example, 2/29/92) is between the starting and ending dates.
Note that the results in following examples are the results that are
returned in Microsoft Excel version 5.0. The results returned in Microsoft
Excel version 4.0 are slightly different, although the same behavior
occurs.
For more information on the YEARFRAC function returning different values in
Microsoft Excel version 5.0 than in Microsoft Excel version 4.0, query on
the following words in the Microsoft Knowledge Base:
yearfrac and different
YEARFRAC(DATEVALUE("01/01/92"), DATEVALUE("02/01/92"),1)
YEARFRAC(DATEVALUE("01/01/92"), DATEVALUE("06/01/92"),1)
"Microsoft Excel Function Reference," version 4.0, page 469
Additional query words: 7.00
Keywords :
Version :
Platform :
Issue type :
Last Reviewed: March 26, 1999