You are currently viewing a sample of the Cram Kit. Click here to unlock everything.
Imagine you've got a dentist appointment on October 15, 2018. You typically work Mondays, Wednesdays, and Fridays, so you'll need to know if you should request off work for this appointment.

Using a calendar, we'd go back to the given date and determine that it's on a Monday, so we'd need to request off work.

The WEEKDAY function does the exact same thing!
Given a date, the WEEKDAY function returns a number between 1-7 representing what day of the week the date is on.
With our dentist appointment, we needed to figure out what day of the week October 15, 2018 was.

Given the WEEKDAY function template...
=WEEKDAY(serial_number, [return_type])
...we'd first place the date that we're looking for into the serial_number argument. To do this, all we need to do is reference the cell in which the date is placed, so B1.
=WEEKDAY(B1, [return_type])
For [return_type], we can actually leave this blank, since it's wrapped in brackets.
Leaving [return_type] blank results in the days of the week being mapped like so:
| Return type | Numbers returned | Days represented |
| none/blank | 1-7 | Sunday-Saturday |
| ... | ... | ... |
Therefore, 1 represents Sunday, 2 represents Monday, and so on.
Now that we've got our WEEKDAY function ready to code, let's plug it into Excel and see what we get!

We get 2, meaning that October 15, 2018 is on a Monday. This matches what we saw on our calendar!
If we wanted to map the days of the week in a different way, here are some of the other common patterns:
| Return type | Numbers returned | Days represented |
| none/blank | 1-7 | Sunday-Saturday |
| 1 | 1-7 | Sunday-Saturday |
| 2 | 1-7 | Monday-Sunday |
| 3 | 0-6 | Monday-Sunday |
With the WEEKDAY function, days of the week are (typically) represented with numbers 1-7, representing Sunday-Saturday. You can modify this mapping by changing your [return_type] argument.