Maintenance Notification: We are upgrading our servers today so you may experience intermediate outages. Thank you for your patience.
Use advanced date and time functions
MO-211

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.

Shifts (the video fills B2:B6)
AB
1DateDay
230-Nov-20262
31-Dec-20263
45-Dec-20267
56-Dec-20261
69-Dec-20264
Sunday as 1
=WEEKDAY(A2)
Returns 2

30-Nov-2026 is a Monday, the second day when the week starts on Sunday.

Monday as 1
=WEEKDAY(A2, 2)
Returns 1

Return type 2 starts the week on Monday, so Saturday is 6 and Sunday 7.

Weekend or weekday
=IF(WEEKDAY(A4, 2)>5, "Weekend", "Weekday")
Returns Weekend

With Monday as 1, anything over 5 is Saturday or Sunday. 5-Dec-2026 is a Saturday.

Midweek
=IF(AND(WEEKDAY(A6)>=3, WEEKDAY(A6)<=5), "Yes", "No")
Returns Yes

With Sunday as 1, Tuesday to Thursday are 3 to 5. 9-Dec-2026 is a Wednesday, 4.

Filled down a column
=WEEKDAY(A2)
Returns 2, 3, 7, 1, 4 in B2:B6

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

The wrong day as 1

=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.

A day number shown as a date

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.

A weekday name typed as text

WEEKDAY needs a date. =WEEKDAY("Monday") returns #VALUE!.

Testing the weekend with the default numbering

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.com

Try 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.