Excel: Documentation Error in YEARFRAC Function

Last reviewed: November 29, 1994
Article ID: Q89026
The information in this article applies to:
  • Microsoft Excel for Windows, version 4.0
  • Microsoft Excel for the Macintosh, version 4.0

SUMMARY

In the "Microsoft Excel Function Reference," version 4.0, page 469, the example of the YEARFRAC function is incorrect. The last comment in the Remarks section of the YEARFRAC function is also incorrect.

MORE INFORMATION

The example that reads:

  YEARFRAC(DATEVALUE("01/01/91"),
  DATEVALUE("07/01/91"),3) equals 0.49589

Should read:

  YEARFRAC(DATEVALUE("01/01/91"),
  DATEVALUE("06/30/91"),3) equals 0.49589

The last comment in the REMARKS section reads:

   * If start_date >= end_date, YEARFRAC returns the #NUM! error value.

This is incorrect. If the starting date and ending date are both valid serial dates, the YEARFRAC function does not return #NUM! if the start_date is greater than or equal to the end_date.

Note that this second problem has been corrected in the Microsoft Excel version 5.0 Help file.

REFERENCES

"Microsoft Excel Function Reference," version 4.0, page 469


KBCategory: kbdocerr
KBSubcategory:

Additional reference words: 4.0 4.00


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 29, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.