Function · Date and time
Excel WEEKDAY function
The Excel WEEKDAY function returns the day of the week as a number. July 4, 2026 is a Saturday, which is 7 when Sunday is 1.
Syntax =WEEKDAY(serial_number, [return_type])
=WEEKDAY(DATE(2026,7,4))Arguments
| Name | Required | What to pass |
|---|---|---|
| serial_number | Required | A real date. |
| return_type | Optional | 1, the default, numbers Sunday as 1 through Saturday as 7. 2 numbers Monday as 1 through Sunday as 7. 3 numbers Monday as 0 through Sunday as 6. 11 through 17 start the week on Monday through Sunday and number that start day as 1. |
Examples
Independence Day 2026
=WEEKDAY(DATE(2026,7,4))Result 7
| A | B | |
|---|---|---|
| 1 | Date | 7/4/2026 |
| 2 | Weekday | 7 |
WEEKDAY turns a date into a weekday number. July 4, 2026 is a Saturday. With the default return type, Sunday is 1 and Saturday is 7, so the result is 7. Return type 2 is the numbering many schedules want: Monday 1 through Sunday 7, and this Saturday becomes 6.
DAY is a different function. DAY of July 4 is 4, the day of the month. WEEKDAY does not know holidays. A test such as WEEKDAY(B1, 2) > 5 is a weekend test only when Saturday and Sunday are the weekend. A shop closed Friday and Saturday needs a different test, or WORKDAY.INTL.