Example 1
Default numbering: Sunday is 1
B2 =WEEKDAY(A2)
Result: 7
15 March 2025 is a Saturday. With the default return type, Sunday is 1, so Saturday is 7.
B2 =WEEKDAY(A2) returns 7
Returns the day of the week of a date as a number. You choose whether the week starts on Sunday or Monday.
Syntax
=WEEKDAY(, )
All versions of Excel. The return types 11 to 17 need Excel 2010 or later.
Try it
Edit the formula in B2 or change the inputs. The sheet recalculates as you type.
B2 =WEEKDAY(A2) returns 7
WEEKDAY returns a number for the day of the week. With the default numbering, Sunday is 1 and Saturday is 7, so =WEEKDAY(DATE(2025,3,15)) returns 7, because 15 March 2025 was a Saturday. Use it to flag weekends, build schedules, and find the next occurrence of a given day.
The return_type argument decides what the numbers mean. The default, 1, starts the week on Sunday. The most useful alternative is 2, where Monday is 1 and Sunday is 7, which matches how business weeks are usually described. Weekend tests are then easy: WEEKDAY(A2,2)>5 is TRUE for Saturday and Sunday. Type 3 numbers Monday as 0 and Sunday as 6, useful for adding offsets from Monday. The types 11 to 17 start the week on a day of your choice and number it 1 to 7.
| return_type | Week starts | Saturday returns | |---|---|---| | 1 (default) | Sunday = 1 | 7 | | 2 | Monday = 1 | 6 | | 3 | Monday = 0 | 5 | | 11 | Monday = 1 | 6 | | 16 | Saturday = 1 | 1 |
WEEKDAY gives a number. To display a name, use TEXT: =TEXT(A2,"dddd") returns Saturday and =TEXT(A2,"ddd") returns Sat. A custom number format of dddd also shows the name while keeping the date in the cell. To look a name up from a number, use CHOOSE: =CHOOSE(WEEKDAY(A2,2),"Mon","Tue","Wed","Thu","Fri","Sat","Sun").
=IF(WEEKDAY(A2,2)>5,"Weekend","Weekday").=A2+8-WEEKDAY(A2,2). It returns the following Monday even when A2 is a Monday.=A2-WEEKDAY(A2,2)+1.=SUMPRODUCT(--(WEEKDAY(A2:A100,2)=1)) counts Mondays.WEEKDAY(date,2)=5.WEEKDAY tests one date at a time. To count working days between dates, or to add working days, use NETWORKDAYS and WORKDAY. They know about weekends and holidays and are shorter than a WEEKDAY test over a range.
The time part of a date-and-time value is ignored.
1 or omitted: Sunday is 1 and Saturday is 7. 2: Monday is 1 and Sunday is 7. 3: Monday is 0 and Sunday is 6. 11 to 17: the week starts on Monday (11), Tuesday (12) and so on to Sunday (17), and that day is 1.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B2 =WEEKDAY(A2)
Result: 7
15 March 2025 is a Saturday. With the default return type, Sunday is 1, so Saturday is 7.
B2 =WEEKDAY(A2) returns 7
Example 2
B2 =IF(WEEKDAY(A2,2)>5,"Weekend","Weekday")
Result: Weekend
With return type 2, Monday is 1 and Saturday is 6, so any value above 5 is a weekend day.
B2 =IF(WEEKDAY(A2,2)>5,"Weekend","Weekday") returns Weekend
Example 3
B2 =A2+8-WEEKDAY(A2,2)
Result: 17-Mar-2025
Saturday is 6 with type 2, so adding 8 - 6 = 2 days gives Monday 17 March 2025. A Monday would give the Monday a week later.
B2 =A2+8-WEEKDAY(A2,2) returns 17-Mar-2025
Example 4
D2 =SUMPRODUCT(--(WEEKDAY(A2:A6,2)=1))
Result: 3
WEEKDAY runs on the whole range. Dates on 3, 10 and 17 March return 1, and the double minus turns the TRUE results into 1s for SUMPRODUCT to add.
D2 =SUMPRODUCT(--(WEEKDAY(A2:A6,2)=1)) returns 3
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In B2, return the day of the week as a number where Monday is 1 and Sunday is 7. Fill it down to B4.
Answer in B2, then it fills down to B4.
WEEKDAY(A2)>5 flags only Friday and Saturday. Use WEEKDAY(A2,2)>5 to flag Saturday and Sunday.TEXT(A2,"dddd").Use `=TEXT(A2,"dddd")` for the full name or `"ddd"` for the short name. WEEKDAY returns only the number.
Use `=WEEKDAY(A2,2)>5`. It is TRUE for Saturday and Sunday. Wrap it in IF to return text such as "Weekend".
Type 2 for most business work: Monday is 1 and Sunday is 7, so weekdays are 1 to 5. Type 1 is the default and starts the week on Sunday.
Use `=A2+8-WEEKDAY(A2,2)`. For the Monday on or after the date, use `=A2+MOD(1-WEEKDAY(A2,2),7)`.
An empty cell is read as the date 0, and Excel treats 0 January 1900 as a Saturday. Test for a blank first.
WEEKDAY is taught in Dates and financial modelling, lesson 3: Weekdays and day names. Each lesson is a short, graded exercise like the one above.