WEEKDAY returns which day of the week a date falls on, as a number — useful for flagging weekends or scheduling logic.
WEEKDAY takes a date and returns a number representing which day of the week it is — by default, 1 for Sunday through 7 for Saturday.
A second, optional argument lets you change which day counts as 1, which matters if your week starts on Monday rather than Sunday.
=WEEKDAY(date, [return_type])| Argument | Description |
|---|---|
| date required | The date to check. |
| return_type optional | Controls which day is numbered 1. Default (1): Sunday=1. Use 2 for Monday=1. |
With the default return_type, Saturday=7 and Sunday=1. With return_type=2, Saturday=6 and Sunday=7 — getting this backwards silently breaks weekend-detection formulas.
=WEEKDAY(DATE(2026,6,22))June 22, 2026 is a Monday, so this returns 2 under the default numbering.
=WEEKDAY(DATE(2026,6,22),2)Same date, but with return_type=2, Monday becomes 1 — so this also returns 1, just under different numbering logic.
=IF(WEEKDAY(A2,2)>5,"Weekend","Weekday")With return_type=2, Saturday=6 and Sunday=7, so anything above 5 is a weekend.
=A2+(9-WEEKDAY(A2,2))A common trick to roll a date forward to the next Monday.
Mixing return_type conventions across a workbook leads to inconsistent weekend/weekday logic — pick one and stay consistent.
ExcelPro has 700+ hands-on Excel exercises across 7 career tracks — free to start, no download needed.
Start practicing free →