Microsoft KB Archive/75065

From BetaArchive Wiki


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


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