Returns the number representing the day of the week for a given date.
Syntax
date: The date for which you want to find the day of the week. E.g. "3/4/2020"
type: Determines the numbering system to use. Defaults to 1 if omitted.
1 - days are counted with Sunday as the first day i.e. 1
2 - days are counted with Monday as the first day i.e. 1
3 - days are counted with Monday as the first day i.e. 0
Examples
|
Formula |
Result |
|
=WEEKDAY("3/4/2020";2) |
3 |
|
=WEEKDAY("3/4/2020";3) |
2 |
|
=WEEKDAY("3/4/2020";1) |
4 |
Possible Errors
|
Errors |
Meaning |
|
#N/A! |
|
|
#NAME! |
|
|
#VALUE! |
|
|
#REF! |
|
Similar Functions