Excel: YEARFRAC() Function Returns Incorrect ResultsLast reviewed: November 29, 1994Article ID: Q90071 |
The information in this article applies to:
SYMPTOMSIn the versions of Microsoft Excel for Windows listed above, the YEARFRAC() function returns an incorrect result if the 1904 Date System option is selected.
MORE INFORMATIONYEARFRAC() returns the fraction of a year represented by the period from the start date to the end date. For example, given a start date of 1/1/92 and end date of 6/30/92, YEARFRAC() returns 0.5, that is, the fraction of the year represented by the dates from January 1 to June 30, is one-half. The 1904 Date System alters the way Microsoft Excel calculates serial dates by changing year one from 1900 to 1904. The purpose of the 1904 Date System option is to allow compatibility between version 1.5 or earlier versions of Microsoft Excel for the Macintosh and Microsoft Excel for Windows. To get correct results using YEARFRAC(), clear the 1904 Date System option. To clear the 1904 Date System option:
Microsoft Excel 5.0
Microsoft Excel 4.0 and 4.0a1. From the Options menu, choose Calculation.
REFERENCES"Microsoft Excel User's Guide 1," version 4.0, pages 172-173
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |