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.

All current Excel versions. Also in Excel for the web and Google Sheets.

Syntax =WEEKDAY(serial_number, [return_type])

WEEKDAY
=WEEKDAY(DATE(2026,7,4))

Arguments

NameRequiredWhat to pass
serial_numberRequiredA real date.
return_typeOptional1, 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

=WEEKDAY(B1)B2
Holiday
AB
1Date7/4/2026
2Weekday7
A picture of the sheet, not a live calculator. The default counts Sunday as 1. Saturday is 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.