WEEKDAY
Description
Returns an integer representing the day of the week.
Syntax
WEEKDAY(
date
, [
return_type
])
- date: The serial date to get the day value from.
- return_type: The code specifying the integer to assign to each day of the week. The defaultreturn_typeis 1. (1 = Sunday, 2 = Monday, and so on.)Return_typeDescription11 = Sunday, 2 = Monday, and so on.21 = Monday, 2 = Tuesday, and so on.30 = Monday, 1 = Tuesday, and so on.111 = Monday, 2 = Tuesday, and so on.121 = Tuesday, 2 = Wednesday, and so on.131 = Wednesday, 2 = Thursday, and so on.141 = Thursday, 2 = Friday, and so on.151 = Friday, 2 = Saturday, and so on.161 = Saturday, 2 = Sunday, and so on.171 = Sunday, 2 = Monday, and so on.
Example
Formula | Result |
|---|---|
=WEEKDAY("12/31/2016 5:37 PM",1) | 7 |
=WEEKDAY("12/31/2016",3) | 5 |
Notes
- To format the result as a weekday name instead of a number, select and enter the formatting stringddd.