Quick Answer

WEEKDAY Function

Returns the day-of-week number for a date.

✓ Excel✓ Google SheetsExcel All versions

Syntax

WEEKDAY
(serial_number, [return_type])

Parameters

ParameterDescriptionRequired
serial_numberThe date serial to evaluate.Required
return_typeOptional. Controls numbering: 1 (default) = Sunday=1 to Saturday=7; 2 = Monday=1 to Sunday=7; 3 = Monday=0 to Sunday=6; 11-17 select a specific start day (11=Mon start ... 17=Sun start).Optional

Basic Example

Day of week for New Year 2024

=WEEKDAY(DATE(2024, 1, 1))
Result2

2024-01-01 is a Monday. With the default return_type 1 (Sunday=1), Monday is 2.

Advanced Examples

Example 1: Monday-based numbering

Wanting 1 = Monday

return_type 2 renumbers the week

=WEEKDAY(DATE(2024, 1, 1), 2)
Result: 1
With return_type 2 (Monday=1 to Sunday=7), Monday returns 1.

Example 2: Zero-based Monday numbering

Programming-style 0-6 week

return_type 3 gives Monday=0

=WEEKDAY(DATE(2024, 1, 1), 3)
Result: 0
With return_type 3 (Monday=0 to Sunday=6), Monday returns 0.

How WEEKDAY Works

WEEKDAY computes the day of the week from the date serial using modulo-7 arithmetic, then maps the result to a number according to return_type. The default (1) treats Sunday as the first day (1) and Saturday as the last (7).

1
Enter the date
Provide a date serial or a DATE(...) expression.
2
Choose return_type
Pick 1, 2, 3, or 11-17 to control the numbering.
3
Read the weekday number
The function returns a number you can use in logic or formatting.

Important Notes & Limitations

  • return_type must be one of 1, 2, 3, or 11-17; other values return #NUM!.

  • The time portion of a date-time serial does not affect the weekday.

  • It works only for dates Excel supports (1900-01-01 onward).

Common Errors & Fixes

#NUM!An invalid return_type value was supplied.

Fix: Use 1, 2, 3, or 11-17.

#VALUE!The date argument is text Excel cannot parse.

Fix: Convert the text to a real date serial first.

Download Practice File

Practice WEEKDAY with Real Data

Download a sample CSV file with pre-populated data and practice exercises for the WEEKDAY function. Works in both Excel and Google Sheets.

Works in Google SheetsCompatible with ExcelIncludes exercises

File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps

Frequently Asked Questions

How do I make Monday equal 1?
Use return_type 2: =WEEKDAY(date, 2).
What does return_type 3 do?
It numbers Monday as 0 and Sunday as 6.
Can I start the week on a different day?
Yes, return_type 11-17 let you pick the start day, e.g. 16 starts Friday.