WEEKDAY Function in Google Sheets: Syntax, Examples & Compatibility
Learn how to convert a date into a weekday number to drive scheduling rules in Google Sheets. 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(date,[type]) returns a weekday number. With type 2, Monday is 1 and Sunday is 7; with the omitted default type 1, Sunday is 1. Write the type explicitly when a rule depends on the numbering.
Availability and version history
- Introduced: Introduction version not established by the official history reviewed.
- Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
- Checked: October 14, 2026; official WEEKDAY reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Syntax and documented numbering modes
=WEEKDAY(date, [type])
Use a date-valued cell, DATE expression or valid numeric serial. The optional type defaults to 1. Google documents the following complete set of numbering conventions:
| Type | First day | Values |
|---|---|---|
| 1 or omitted, 17 | Sunday | Sunday 1 through Saturday 7 |
| 2, 11 | Monday | Monday 1 through Sunday 7 |
| 3 | Monday | Monday 0 through Sunday 6 |
| 12 | Tuesday | Tuesday 1 through Monday 7 |
| 13 | Wednesday | Wednesday 1 through Tuesday 7 |
| 14 | Thursday | Thursday 1 through Wednesday 7 |
| 15 | Friday | Friday 1 through Thursday 7 |
| 16 | Saturday | Saturday 1 through Friday 7 |
The result is a number, not a day name. Format it as a number; format the original date or use TEXT when a displayed weekday name is wanted.
Two original worked controls
=WEEKDAY(DATE(2026,6,1),2)
=WEEKDAY(DATE(2026,6,7),2)
Expected outputs are 1 and 7: June 1 is Monday and June 7 is Sunday. The formulas use English function names and comma separators.
For the same Monday, omitting type gives 2, while type 3 gives 0. A formula that treats every result of 1 as Monday is therefore unsafe unless its numbering mode is fixed.
Advanced example: verify a complete week
Put =DATE(2026,6,1) in A2, then =A2+1 in A3 and fill through A8. Fill these separate helper columns down:
=WEEKDAY(A2,2)
=WEEKDAY(A2)
=WEEKDAY(A2,15)
For Monday through Sunday, expected columns are respectively:
- Type 2: 1, 2, 3, 4, 5, 6, 7.
- Default type 1: 2, 3, 4, 5, 6, 7, 1.
- Friday-first type 15: 4, 5, 6, 7, 1, 2, 3.
A complete seven-row control detects a mode mismatch that a single date could miss. It also makes the rollover point visible before the numbers are used in a reporting condition.
Advanced example: classify a weekend without changing the calendar
For an explicitly Monday-through-Friday working pattern:
=WEEKDAY(A2,2)>5
Expected flags for the seven rows above are FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE. Under a Sunday-through-Thursday pattern, a Friday/Saturday closure rule can instead use:
=OR(WEEKDAY(A2,2)=5,WEEKDAY(A2,2)=6)
Its flags are FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE. These expressions label a policy you supplied. They do not make WEEKDAY aware of local holidays, shifts or an organization’s actual schedule.
Advanced example: anchor every date to its Monday
=A2-WEEKDAY(A2,2)+1
Every date from June 1 through June 7 produces June 1, 2026. June 8 produces June 8. Format the result as a date, because this expression returns an anchor date rather than the weekday number alone.
Grouping records by the anchor avoids merging week number 1 from different calendar years. For an explicitly ISO-labeled export, WEEKNUM and the correct week-year still need to be considered.
Advanced example: next Monday versus Monday on or after
For date-only input A2, the strictly next Monday is:
=A2+8-WEEKDAY(A2,2)
The Monday on or after the input is:
=A2+MOD(8-WEEKDAY(A2,2),7)
For Monday June 1, the outputs are June 8 and June 1. For Wednesday June 3 or Sunday June 7, both return June 8. Those rules differ precisely when the input is already Monday, so decide whether “next” permits today.
Neither formula excludes holidays. If Monday is a closure, a separate working-calendar calculation is needed.
Input types, names and unresolved errors
Google warns that date-looking text inside the function is not automatically converted as it can be during direct cell entry. 10/10/2000 evaluates to 0.0005, not October 10. Use DATE(2000,10,10) for that date.
A weekday number is also different from a week-of-year number or a day-of-month component. Keep labels precise in headers and exports. The reference does not provide a complete error-code matrix for invalid types, malformed strings or historical serials; those cases were not natively tested and are not assigned Excel error behavior here.
Related guides and verification
DATE in Google Sheets · DATE in Microsoft Excel · TODAY in Google Sheets · TODAY in Microsoft Excel · Compare WEEKDAY in Microsoft Excel
A guide for another spreadsheet is a separate product reference. It does not establish identical date parsing, serial boundaries or error displays after a file import.
The complete guide and original examples were reviewed on October 14, 2026 against direct Google documentation. Calendar, interval and numeric expectations were independently calculated; no native Google Sheets execution, mobile-client certification or complete input-conversion test was performed.