The Excel WEEKDAY function returns the day of the week as a number, so you can flag weekends, group by day, or build work-schedule logic.
Syntax
| Argument | Description | |
|---|---|---|
serial_number | Required | The date to test. |
return_type | Optional | Numbering scheme: 1 = Sun–Sat with Sun=1 (default), 2 = Mon–Sun with Mon=1, 3 = Mon=0, plus 11–17 variants. |
How to use it
The default numbering (return_type 1) starts on Sunday, which is awkward for weekend tests. Use return_type 2 so Monday=1…Sunday=7 and weekends are simply 6 and 7. Combine with TEXT for day names: =TEXT(A2,"dddd").
Try it: interactive demo
Adjust the input and watch the formula and result update.
Tips & gotchas
Day of the week as a number - flag weekends and build schedule logic. Format result cells as Date or Time so they don’t display raw serial numbers.
Practice workbook
Frequently asked questions
Which return_type should I use?
How do I get the day NAME?
How do I flag weekends?
Can it count weekdays in a range?
Master functions like this in one day
This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class