Date & Time
All versions
◉ 15 views
=WEEKDAY()
Returns the day of the week corresponding to a date. The day is given as an integer, ranging from 1 (Sunday) to 7 (Saturday), by default.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016Microsoft365.com
=WEEKDAY(serial_number,[return_type])
Hover argument names in the table for details.
Output typeNumber
Popularity55 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx — Coming soon
▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =WEEKDAY() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
🧠 🧠 Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
serial_number |
Date | Required | A sequential number that represents the date of the day you are trying to find. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text. |
return_type |
Number | Optional | A number that determines the type of return value. 1 or omitted = Numbers 1 (Sunday) through 7 (Saturday). Behaves like previous versions of Microsoft Excel.; 2 = Numbers 1 (Monday) through 7 (Sunday).; 3 = Numbers 0 (Monday) through 6 (Sunday).; 11 = Numbers 1 (Monday) through 7 (Sunday).; 12 = Numbers 1 (Tuesday) through 7 (Monday).; 13 = Numbers 1 (Wednesday) through 7 (Tuesday).; 14 = Numbers 1 (Thursday) through 7 (Wednesday).; 15 = Numbers 1 (Friday) through 7 (Thursday).; 16 = Numbers 1 (Saturday) through 7 (Friday).; 17 = Numbers 1 (Sunday) through 7 (Saturday).. |
▣ Examples
▦ Data
| Cell | Value |
|---|---|
A2 |
2/14/2008 |
A3 |
2/14/2008 |
Day of the week, with numbers 1 (Sunday) through 7 (Saturday) (5)
=WEEKDAY(A2)
Result:
5
Day of the week, with numbers 1 (Monday) through 7 (Sunday) (4)
=WEEKDAY(A2, 2)
Result:
4
Day of the week, with numbers 0 (Monday) through 6 (Sunday) (3)
=WEEKDAY(A2, 3)
Result:
3
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!