Calculate dates by using the WEEKDAY() function
=WEEKDAY(A2)The day of the week of the date in A2, as a number from 1 (Sunday) to 7 (Saturday). A second argument of 2 numbers Monday as 1 instead.
What the MO-211 task asks
WEEKDAY tasks in our MO-211 practice exams spell out the numbering, because that is the whole question: “return each journey's day of the week as a number, with Sunday as 1 and Saturday as 7”, or “was the pub date a midweek day, numbering the days with Sunday as 1 so that midweek is 3, 4 or 5?”
Sunday as 1 is WEEKDAY's default, so no second argument is needed. Monday as 1 is a return type of 2. The day number often feeds something else: an IF that labels weekends, or a helper column another formula reads.
Our grader checks the value in every cell of the target range. It reads the values, not the function, so any formula that produces them earns the points — but one wrong cell fails the whole range.
Worked examples
Type these into a blank sheet to follow along. Every result below is what Excel showed.
| A | B | |
|---|---|---|
| 1 | Date | Day |
| 2 | 30-Nov-2026 | 2 |
| 3 | 1-Dec-2026 | 3 |
| 4 | 5-Dec-2026 | 7 |
| 5 | 6-Dec-2026 | 1 |
| 6 | 9-Dec-2026 | 4 |
=WEEKDAY(A2)30-Nov-2026 is a Monday, the second day when the week starts on Sunday.
=WEEKDAY(A2, 2)Return type 2 starts the week on Monday, so Saturday is 6 and Sunday 7.
=IF(WEEKDAY(A4, 2)>5, "Weekend", "Weekday")With Monday as 1, anything over 5 is Saturday or Sunday. 5-Dec-2026 is a Saturday.
=IF(AND(WEEKDAY(A6)>=3, WEEKDAY(A6)<=5), "Yes", "No")With Sunday as 1, Tuesday to Thursday are 3 to 5. 9-Dec-2026 is a Wednesday, 4.
=WEEKDAY(A2)Monday, Tuesday, Saturday, Sunday and Wednesday, with Sunday as 1. This is what the video below builds.
Watch it done in Excel
The last example above, recorded in real Excel on the same grid.
Exam traps
=WEEKDAY(A2, 2) returns 1 for Monday 30-Nov-2026, where the default returns 2. Every row is off by one, and the range fails. Use the numbering the task states.
In a cell formatted as a date, the 2 that WEEKDAY returns shows as 2-Jan-1900. The value is right; set the cell to General or Number.
WEEKDAY needs a date. =WEEKDAY("Monday") returns #VALUE!.
With Sunday as 1, the weekend is 1 and 7, not “over 5”. =IF(WEEKDAY(A2)>5, "Weekend", "Weekday") calls Friday a weekend. Use return type 2 for a “> 5” test.
FAQ
Which day is 1 by default?
Sunday. =WEEKDAY(A5) returns 1 for Sunday 6-Dec-2026.
How do I show the day's name?
Map the number with SWITCH: =SWITCH(WEEKDAY(A2), 1, "Sun", 2, "Mon", 3, "Tue", 4, "Wed", 5, "Thu", 6, "Fri", 7, "Sat") returns Mon.
WEEKDAY or WORKDAY?
WEEKDAY tells you which day a date is. WORKDAY counts working days forward or back from a date and returns the new date.
New to this function?
This page covers what the exam asks. For the full how-to — every argument, more examples and a practice workbook — read our guide on dfwexcel.com.
The WEEKDAY function, explained — dfwexcel.comTry it under exam conditions
Take a full, timed MO-211 practice exam, upload the workbook you built, and get a score out of 1000 with a per-task breakdown of where the points went. Your first one is free.
No credit card needed.
