Returns the day of the week corresponding to a date. The day is given as an integer, ranging from 1 (Sunday) to 7 (Saturday), by default.
Serial_number is a sequential number that represents the date of the day you are trying to find. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.
Return_type is a number that determines the type of return value.
|1 or omitted
||Numbers 1 (Sunday) through 7 (Saturday). Behaves like previous versions of Microsoft Excel.
||Numbers 1 (Monday) through 7 (Sunday).
||Numbers 0 (Monday) through 6 (Sunday).
Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900. Microsoft Excel for the Macintosh uses a different date system as its default.
The example may be easier to understand if you copy it to a blank worksheet.
How to copy an example
- Create a blank workbook or worksheet.
- Select the example in the Help topic.
Note Do not select the row or column headers.
Selecting an example from Help
- Press CTRL+C.
- In the worksheet, select cell A1, and press CTRL+V.
- To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
||Day of the week, with numbers 1 (Sunday) through 7 (Saturday) (5)
||Day of the week, with numbers 1 (Monday) through 7 (Sunday) (4)
||Day of the week, with numbers 0 (Monday) through 6 (Sunday) (3)
Note 2/14/2008 is a Thursday.