Syntax
| Parameter | Description |
|---|---|
| serial_number | Parameter of the WEEKDAY function. |
| [return_type] | (Optional.) Parameter of the WEEKDAY function. |
Examples
Default day of week
=WEEKDAY("2026-04-09")
Monday-start system
=WEEKDAY("2026-04-09", 2)
Identify weekends
=IF(WEEKDAY(A1,2)>5, "Weekend", "Weekday")
Common Errors
Occurs when the date argument is not a valid date or the return_type is not a recognized number (1, 2, 3, 11-17).
Occurs when the date serial number is out of range.
Tips
Type 1 (default): Sun=1 to Sat=7. Type 2: Mon=1 to Sun=7. Type 3: Mon=0 to Sun=6. Types 11-17 start from different days of the week.
With return_type=2: =WEEKDAY(date,2)>5 catches Saturday and Sunday. Much cleaner than checking for 1 and 7 in the default system.
Apply =WEEKDAY(A1,2)>5 as a conditional formatting rule to highlight weekend dates automatically in a date column.
Try WEEKDAY in Viztab
Import your data and use WEEKDAY with 370+ other formulas. No signup required.
Open Viztab