What is the WEEKNUM function?
=WEEKNUM(serial_number, [return_type])WEEKNUM returns which week of the year a date falls in. The week containing January 1 is week 1.
Depending on the day the week starts (return_type), the same date can have a different week number. Change the type on the calendar above to see the shaded week move.
Arguments
- serial_number
- The date whose week number you want.
- return_type
- The day the week starts. 1 (omitted) is Sunday, 2 is Monday. 21 is the ISO 8601 method, where the week with the first Thursday of January is week 1.
WEEKNUM examples
Example 1. Weeks start on Sunday
=WEEKNUM(DATE(2026,11,18))47.
Example 2. Weeks start on Monday
=WEEKNUM(DATE(2026,11,18), 2)47.
Example 3. ISO week
=WEEKNUM(DATE(2027,1,1), 21)January 1, 2027 (Friday) is in ISO week 53 of 2026, so 53. Type 1 gives 1.
Common mistakes
Thinking it is the same as ISO
With types 1 and 2, the week containing January 1 is always week 1, but with ISO (21) the first few days of the year can belong to the last week of the previous year.
Ignoring the start day
If your company's weeks start on Monday, be sure to use type 2.
FAQ
- ISO week numbers only?
- ISOWEEKNUM gives the same result.
- Types 11 to 17?
- 11 starts on Monday, 12 on Tuesday … 17 on Sunday. They count the same way as 1 and 2.