
The Excel WEEKNUM function returns the week number of a date within the year.
WEEKNUM is useful for weekly reporting, scheduling, production cycles, sprint planning, and any workbook that groups records by week instead of by day or month.
Converts a date into a week number for annual reporting and grouping.
Returns the week number for the supplied date based on the selected system.
=WEEKNUM(serial_number, [return_type])
serial_number is the date you want to evaluate. The optional return_type changes the week system and the starting day of the week.
Microsoft documents two main systems for this function.
| System | Week 1 Rule | Typical Return Type | Best Use |
|---|---|---|---|
| System 1 | The week containing January 1 is week 1 | 1 or 2 |
Standard non-ISO week numbering |
| System 2 | The week containing the first Thursday is week 1 | 21 |
ISO 8601 week numbering |
If you need strict ISO week numbering, WEEKNUM(date,21) follows the same ISO-based system documented by Microsoft. If you want a simpler Sunday-start or Monday-start week number, use the standard return types instead.
WEEKNUM is most useful when your reporting is organized by week. For example, a sales log, manufacturing log, or sprint tracker can use a helper column with WEEKNUM so records can be grouped and filtered more easily.
Return type 2 is often preferred in business models because it starts the week on Monday. Return type 21 is for ISO week numbering, where week 1 is defined by the first Thursday of the year rather than simply by January 1.
Because week systems differ, the same date can return different week numbers depending on the return type. That is the most important detail to keep in mind when using WEEKNUM in shared reports.
This is the most basic use of WEEKNUM: return the week number for today.
=WEEKNUM(TODAY())
This is helpful for live dashboards, weekly summaries, and current-week reporting.
In cell F1, return the current week number with =WEEKNUM(TODAY()).
Return type 2 starts the week on Monday instead of Sunday.
=WEEKNUM(B2,2)
This is often easier to align with business calendars, especially when teams treat Monday as the first workday of the week.
In cell F2, return the week number for B2 using return type 2.
Return type 21 switches the function to the ISO 8601 system.
=WEEKNUM("2026-01-01",21)
This is useful when your reports need to match international or ISO-based week numbering rules.
In cell F3, calculate the week number for January 1, 2026.
You can combine WEEKNUM with text to create display labels.
="Week " & WEEKNUM(B2)
This pattern works well for chart labels, sprint names, and weekly headings in reports.
In cell F4, create a label like "Week 3" from the date in B2.
WEEKNUM returns the week number for a date.2 starts weeks on Monday.21 uses the ISO 8601 system.Tell your friends about this post