WEEKNUM returns which numbered week of the year a date falls in — useful for weekly reporting and grouping.
WEEKNUM returns the week number of the year that a given date falls in, where week 1 is the week containing January 1st.
It is commonly used to group daily data into weekly summaries — for example, grouping sales by week number to build a weekly trend chart.
=WEEKNUM(date, [return_type])| Argument | Description |
|---|---|
| date required | The date to check. |
| return_type optional | Controls which day starts the week. Default (1): weeks start Sunday. |
=WEEKNUM(DATE(2026,6,22))Returns the week of the year June 22, 2026 falls in.
=SUMIFS(C:C,B:B,WEEKNUM(A2))Pairs WEEKNUM with SUMIFS to total sales for whichever week a given date belongs to.
=WEEKNUM(A2)=WEEKNUM(B2)Checks whether two dates fall in the same week of the year.
Excel's default WEEKNUM does not follow the international ISO 8601 week numbering. Use ISOWEEKNUM if you specifically need that standard.
ExcelPro has 700+ hands-on Excel exercises across 7 career tracks — free to start, no download needed.
Start practicing free →