Excel: WEEKDAY Function Returns Incorrect Day

Last reviewed: November 30, 1994
Article ID: Q75065
Summary:

Page 249 of the "Microsoft Excel Function Reference" version 3.0 manual incorrectly states the following:

   To display the result of the WEEKDAY function as a day of
   the week, use the Format Number Command to format the cell
   containing the function with the custom date format "dddd."

It is not necessary to use the WEEKDAY function to display the day of the week for a particular date. To display a cell as a day of the week, format the cell containing the date with the custom date format of "dddd."

More Information:

If the 1904 date system is selected for the Macintosh, Windows, or OS/2 platform and the value returned by the weekday function is formatted as a date, it is interpreted as a serial number representing the dates between January 2, 1904, and January 8, 1904. These dates correspond to the serial numbers 1 through 7.

Because January 2, 1904, was a Saturday, the result of formatting a cell containing the number 1 when using the 1904 date system as "dddd" would be "Saturday."

If the 1904 date system is not selected on either platform, the serial numbers 1 through 7 correspond to the dates January 1, 1900 through January 7, 1900.

Because January 1, 1900, was a Sunday, the result of formatting a cell containing the number 1 when using the 1900 date system as "dddd" would be "Sunday."


KBCategory: kbother
KBSubcategory:

Additional reference words: 3.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 30, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.