Excel WEEKDAY Function
This Excel Tutorial demonstrates how to use the Excel WEEKDAY Function in Excel to get the day of the week (1-7), with formula examples.
WEEKDAY Function Description:
The WEEKDAY Function Returns the day of the week as a number (1-7).
|Week starts on Monday.||=WEEKDAY(C6,D6)||1|
Syntax and Arguments:
The Syntax for the WEEKDAY Formula is:
Function Arguments ( Inputs ):
serial_number – The date in Excel serial number format or entered as a date with quotations (“s) surround the date. Example: You can not enter 11/12/2015 directly into the cell. Instead you need to enter “11/12/2015” or you would need to use the corresponding serial number: 42320. Alternatively, you can reference a cell with the date 11/12/2015 entered. Excel automatically converts dates stored in cells into serial format (unless the date is entered as text).
return_type – OPTIONAL. A number indicating which day of the week is considered the first day of the week. 1 (Default) for Sunday, 2 for Monday, etc.
Simply enter a date. By default, the first day of the week is considered Sunday. Enter 2 to change the start date to Monday, 3 for Tuesday, etc..
WEEKDAY Examples in VBA
You can also use the WEEKDAY function in VBA. Type:
For the function arguments (serial_number, etc.), you can either enter them directly into the function, or define variables to use instead.
Return to the List of all Functions in Excel
How to use the WEEKDAY Function in Excel:
To use the AND Excel Worksheet Function, type the following into a cell:
After entering it in the cell, notice how the AND formula inputs appear below the cell:
You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=WEEKDAY(” into a cell, without leaving the cell, use the shortcut CTRL + A (A for Arguments) to open the “Insert Function Dialog Box” for detailed instructions:
For more information about the WEEKDAY Formula visit the