XL: Days of the Week Before March 1, 1900, Are Incorrect

Last reviewed: March 19, 1998
Article ID: Q106339

The information in this article applies to:
  • Microsoft Excel for Windows, versions 2.x, 3.0, 4.0, 4.0a, 5.0, 5.0c
  • Microsoft Excel for Windows 95, version 7.0
  • Microsoft Excel 97 for Windows
  • Microsoft Excel for the Macintosh, versions 2.2, 3.0, 4.0, 5.0, 5.0a
  • Microsoft Excel 98 for the Macintosh

SUMMARY

In Microsoft Excel, when you use the WEEKDAY function to compute the day of the week for dates prior to March 1, 1900, the function returns an incorrect result.

For example, if you use the WEEKDAY function to determine the day of the week of February 16, 1900, Microsoft Excel returns 5, which indicates that the 16th was a Thursday. The function should return 6, because February 16, 1900, was actually a Friday.

When you use the WEEKDAY function to find the day of the week for dates on or after March 1, 1900, the function returns the correct answer.

MORE INFORMATION

When the date system in Microsoft Excel was originally created, it was designed to be fully compatible with date systems used by other spreadsheet programs.

However, in this date system, the year 1900 is incorrectly interpreted as a leap year. Because there is no 29th of February ("leap day") in the year 1900, the day of the week for any date before March 1, 1900 (the day after the "leap day"), is not computed correctly.

Note that this only affects dates before March 1, 1900, and that the error only occurs when using the 1900 Date System in Microsoft Excel.


Additional query words: 2.00 2.10 2.20 2.21 3.00 4.00 5.00 5.00c 7.00 97 98
year 2000 y2k
Keywords : xlformula kb2000
Version : WINDOWS:2.x,3.0,4.0,4.0a,5.0,5.0c,7.0,97; MACINTOSH:98
Platform : MACINTOSH WINDOWS
Issue type : kbbug


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: March 19, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.