Contact

WEEKDAY Function in Microsoft Excel: Syntax, Examples & Compatibility

Date & Time Beginner Microsoft Excel

Learn how to convert a date into a weekday number to drive scheduling rules in Microsoft Excel. Includes syntax, two verified-by-reasoning results, troubleshooting and portability notes.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: WEEKDAY converts a date into a weekday number. The omitted default is Sunday = 1 through Saturday = 7. Use an explicit return_type when the number drives a scheduling rule; Monday-first type 2 is different from the default.

Availability and version history

  • Introduced: Introduction version not established by the official history reviewed.
  • Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016, Microsoft365.com.
  • Checked: October 14, 2026; official WEEKDAY reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Syntax and input setup

=WEEKDAY(serial_number, [return_type])

Examples use English function names and comma separators. Enter formula inputs exactly as shown, keep outputs outside the input cells, and use the specified date or numeric output format.

The date is required; the numbering mode is optional. Use DATE or a validated numeric date rather than an ambiguous text date. Format the result as General or Number, since it is an index, not a date serial representing the original date.

Two original worked controls

=WEEKDAY(DATE(2026,6,1),2)
=WEEKDAY(DATE(2026,6,7),2)

Expected results are 1 and 7. June 1, 2026 is Monday and June 7 is Sunday. Both formulas deliberately select the Monday-first 1–7 convention.

For those same dates, omitting the mode gives 2 and 1. Using mode 3 gives 0 and 6. Changing the mode changes the numbering, not which real weekday the date falls on.

Documented numbering modes

return_type First weekday Numbers
1 or omitted Sunday 1–7
2 or 11 Monday 1–7
3 Monday 0–6
12 Tuesday 1–7
13 Wednesday 1–7
14 Thursday 1–7
15 Friday 1–7
16 Saturday 1–7
17 Sunday 1–7

These are the values in Microsoft’s function-specific table. In particular, mode 3 is zero-based, while mode 11 is another Monday-first 1–7 form. The numeric arguments are not identical to every other date function’s modes.

Example: inspect a complete week before using a rule

Put =DATE(2026,6,1) in A2, then =A2+1 in A3 and fill down through A8. In B2 enter =WEEKDAY(A2,2) and fill down.

Expected numbers are 1,2,3,4,5,6,7, corresponding to Monday through Sunday. With the default instead, the sequence would be 2,3,4,5,6,7,1. With mode 15 it would be 4,5,6,7,1,2,3, because Friday is numbered one.

A small complete-week control catches a wrong numbering convention more reliably than checking only one familiar weekday.

Advanced example: a weekday rule is not a holiday calendar

For the same A2:A8 dates:

=WEEKDAY(A2,2)<=5

Filled down, the expected logical results are TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE. The explicit mode 2 makes Monday through Friday numbers 1 through 5.

With the default Sunday-first mode, the same <=5 test would include Sunday and exclude Friday, changing the intended schedule. Always inspect the mode before interpreting a threshold.

The correct Monday-to-Friday rule still says TRUE for a public holiday that falls on Wednesday. Use a separately supplied holiday calendar with NETWORKDAYS or WORKDAY when holidays are part of the requirement.

Advanced example: find the Monday of the containing week

With a date in A2:

=A2-WEEKDAY(A2,2)+1

For June 3, 2026 the weekday number is 3, so the formula subtracts two days and returns June 1. For Sunday June 7 it also returns June 1; for Monday June 1 it stays June 1.

This arithmetic example assumes date-only values. If A2 includes a time fraction, subtracting an integer number of days retains that time fraction rather than necessarily returning midnight.

Advanced example: next Monday versus Monday on or after

=A2+8-WEEKDAY(A2,2)
=A2+MOD(1-WEEKDAY(A2,2),7)

The first finds a Monday strictly after the supplied date. The second includes today when it is already Monday. For A2 June 1, the expected results are June 8 and June 1. For A2 June 7, both give June 8.

This distinction often matters in scheduling: “next” and “on or after” are different policies. Neither formula checks holidays, so a Monday holiday remains the selected calendar date.

Advanced example: a different recurring workweek

For an illustrative Sunday-through-Thursday workweek with Friday/Saturday off, use the same Monday-first index in a helper column, then test whether it is at most 4 or equals 7.

=OR(WEEKDAY(A2,2)<=4,WEEKDAY(A2,2)=7)

Across June 1–7 the expected results are TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, TRUE. This is an explicit Boolean schedule rule, not a change to the meaning of WEEKDAY or to WORKDAY’s standard weekend calendar.

Microsoft documents #NUM! for a date serial outside the valid range or an unsupported return_type. For example, return_type 10 is absent from the table and has documented expected #NUM!. Fractional, text and blank mode coercions are not certified here.

WEEKNUM returns a week-of-year number, while WEEKDAY returns a position within the week. Do not substitute one for the other simply because both results are small integers. Current date-system and client support scope remains the one stated above.

DATE in Microsoft Excel | DATE in Google Sheets | TODAY in Microsoft Excel | TODAY in Google Sheets | editorial testing standards

The full manuscript and original worked formulas were reviewed on October 14, 2026. The approved availability/history section is unchanged. Expected results are independently calculated date/arithmetic models or explicitly documented rules, not native Excel output. Current-clock formulas have conditional rather than fixed outputs. Client-specific time-zone, mixed-type and boundary behavior is not inferred from another spreadsheet.