WEEKDAY function
Returns the day of the week of a date as a number, e.g. 1 = Sunday to 7 = Saturday (the numbering is adjustable).
Available in All versions of Excel (Windows and Mac), Excel for Microsoft 365, Excel for the web
In every Excel versionWorks in Google Sheets
Syntax
WEEKDAY(serial_number, [return_type])| Argument | What it means | |
|---|---|---|
serial_number | Required | The date to check. |
return_type | Optional | Numbering scheme: 1 or omitted = Sunday 1 … Saturday 7; 2 = Monday 1 … Sunday 7; 3 = Monday 0 … Sunday 6; 11–17 = weeks starting Monday (11) through Sunday (17), numbered 1–7. |
Returns: A whole number for the day of the week.
How WEEKDAY works
WEEKDAY tells you which day of the week a date falls on, as a number. That is the key to rules like "no deliveries at weekends", "Monday stand-up", or "show only Fridays" — in formulas, filters and conditional formatting.
The tricky part is the numbering. By default Sunday is 1 and Saturday is 7 (the US convention). Most of the world starts the week on Monday, and return_type 2 does exactly that: Monday = 1 … Sunday = 7. With type 2, a simple test WEEKDAY(A2,2)>5 catches Saturdays and Sundays. If you just want the day's name, use TEXT(A2,"dddd") instead.
WEEKDAY also helps calculate dates: subtracting WEEKDAY(A2,3) from a date (type 3 numbers Monday as 0) returns the Monday of that week.
Examples
1Day number with the default numbering
| A | B | |
|---|---|---|
| 1 | Date | Weekday |
| 2 | 2026-12-02 | 4 |
Result: 4
2 December 2026 is a Wednesday. With Sunday = 1, Wednesday is day 4.
2Monday-based numbering
| A | B | |
|---|---|---|
| 1 | Date | Weekday |
| 2 | 2026-12-02 | 3 |
Result: 3
With return_type 2 Monday is 1, so Wednesday is 3.
3Flag weekend orders
| A | B | |
|---|---|---|
| 1 | Order date | Day type |
| 2 | 2026-12-05 | Weekend |
Result: Weekend
5 Dec 2026 is a Saturday, which is 6 in the Monday-based scheme, so it is greater than 5.
4Date of next Monday
| A | B | |
|---|---|---|
| 1 | Date | Next Monday |
| 2 | 2026-12-02 | 2026-12-07 |
Result: 2026-12-07
WEEKDAY(A2,2) is 3 for a Wednesday; 2 Dec + 8 − 3 = 7 Dec 2026, the following Monday (cell formatted as yyyy-mm-dd). If A2 is already a Monday the formula returns the Monday a week later.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | return_type is not one of the valid codes (1, 2, 3, 11–17). | Use 1, 2, 3 or 11–17. |
#VALUE! | The date is text Excel cannot interpret. | Convert it with DATEVALUE. |
Tips
- Use return_type 2 by default in Europe — it makes weekend tests (
>5) and week-start calculations much easier. - For the day name use
TEXT(A2,"ddd")("Wed") or"dddd"("Wednesday"). - To count weekdays in a range use NETWORKDAYS rather than looping over WEEKDAY.
Questions
Why does WEEKDAY say Monday is 2?
The default numbering starts on Sunday (Sunday = 1). Add a second argument of 2 to make Monday = 1.
How do I get the name of the day?
Use =TEXT(A2,"dddd"). WEEKDAY only returns a number.
Google Sheets
WEEKDAY also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
WEEKDAY in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | DENTÝDNE |
| Danish | UGEDAG |
| Dutch | WEEKDAG |
| Finnish | VIIKONPÄIVÄ |
| French | JOURSEM |
| German | WOCHENTAG |
| Hungarian | HÉT.NAPJA |
| Italian | GIORNO.SETTIMANA |
| Norwegian (Bokmål) | UKEDAG |
| Polish | DZIEŃ.TYG |
| Portuguese (Brazil) | DIA.DA.SEMANA |
| Portuguese (Portugal) | DIA.SEMANA |
| Russian | ДЕНЬНЕД |
| Spanish | DIASEM |
| Swedish | VECKODAG |
| Turkish | HAFTANINGÜNÜ |
Recipes that use WEEKDAY
- How to convert a date to text in Excel
- How to count working days between two dates in Excel
- How to get the first and last day of the month in Excel
- How to make a Gantt chart with conditional formatting in Excel
- How to use conditional formatting with a formula in Excel