Excel function

WEEKDAYfunction

Returns the day of the week of a date as a number.

All versions
=WEEKDAY(DATE(2026,5,4), 1)

May 2026

Sun1
Mon2
Tue3
Wed4
Thu5
Fri6
Sat7

Click a date on the calendar to change serial_number. Switch the type to 2 and the numbers under the weekday names restart from Monday. Try breaking it on purpose to see the errors.

Result

2

serial_number
May 4, 2026 (Mon)

The date whose weekday you want.

return_type

How weekdays are numbered. Omitted means 1. Excel also has types 11 to 17.

What is the WEEKDAY function?

=WEEKDAY(serial_number, [return_type])

WEEKDAY tells you the day of the week of a date as a number. Use it with IF to check for weekends or give different values by weekday.

The same weekday gets a different number depending on return_type. Change the type on the calendar above to see the numbers under the weekday names change. Mixing up the types is a common mistake.

Arguments

serial_number
The date whose weekday you want.
return_type
Optional. 1 (omitted): Sunday 1 to Saturday 7; 2: Monday 1 to Sunday 7; 3: Monday 0 to Sunday 6. Excel also has types 11 to 17 that set the starting day.

WEEKDAY examples

  1. Example 1. Get the weekday number

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

    May 4, 2026 is a Monday, so type 1 gives 2.

  2. Example 2. Check for a weekend

    =IF(WEEKDAY(A2, 2)>5, "Weekend", "Weekday")

    In type 2, Saturday is 6 and Sunday is 7, so "greater than 5" means a weekend.

Common mistakes

FAQ

When is type 3 useful?
It counts Monday as 0, so date minus WEEKDAY(date,3) is the Monday of that week. Handy for grouping by week.
What if the type number does not exist?
According to Microsoft, a return_type not in the table gives #NUM!.