Category: FUNCTION | Updated: 2026-11-22
How to Use the WEEKNUM Function in Google Sheets | Calculate the Week Number of the Year
How to Use the WEEKNUM Function
The WEEKNUM function returns a number (1–54) representing which week of the year a specified date falls into, counting from January 1. It is useful for weekly sales reporting and managing annual schedules by week number.
Syntax
=WEEKNUM(date, [type])
- date: The date whose week number you want to find.
- type (optional): Specifies which day starts the week. Defaults to
1(Sunday start) if omitted.1(or omitted): Week begins on Sunday2: Week begins on Monday (week containing Jan 1 is Week 1)21: Week begins on Monday (ISO 8601 standard: week containing the first Thursday is Week 1)
Examples
Here are examples of applying WEEKNUM to early-year dates and a date in November 2026.
| A (Date) | B (Formula) | Result | Explanation |
|---|---|---|---|
| 2026/01/01 (Thu) | =WEEKNUM(A2) |
1 | January 1 is always Week 1 |
| 2026/01/04 (Sun) | =WEEKNUM(A3, 1) |
2 | With Sunday start, Jan 4 begins Week 2 |
| 2026/01/04 (Sun) | =WEEKNUM(A4, 2) |
1 | With Monday start, Jan 4 is still in Week 1 |
| 2026/11/22 (Sun) | =WEEKNUM(A5, 2) |
47 | November 22, 2026 is Week 47 with Monday start |
Common Errors and Tips
- Week number reset at year-end: With
type1or2, December 31 may be Week 53, and January 1 immediately resets to Week 1 even in the middle of the same week. For global or ISO-compliant reporting that preserves continuous weeks across year boundaries, usetype21or theISOWEEKNUMfunction. #NUM!error: Occurs when an undefined number is passed astype.#VALUE!error: Occurs when the first argument is not a valid date.
Frequently Asked Questions
Q. What is the difference between WEEKNUM and ISOWEEKNUM?
A. WEEKNUM always counts the week containing January 1 as "Week 1", whereas ISOWEEKNUM follows the ISO 8601 standard, counting the week containing the year's first Thursday as "Week 1".
Q. Can I change the start of the week from Sunday to Monday?
A. Yes. Pass "2" as the second argument (type) to calculate week numbers starting on Monday.