Function · Date and time
Excel WEEKNUM function
The Excel WEEKNUM function returns the week number of a date. Sunday, January 4, 2026 is week 2 in the default Sunday system and ISO week 1.
Syntax =WEEKNUM(serial_number, [return_type])
=WEEKNUM(DATE(2026,1,4),1)Arguments
| Name | Required | What to pass |
|---|---|---|
| serial_number | Required | A real date. |
| return_type | Optional | 1, the default, starts weeks on Sunday, and the week that contains January 1 is week 1. 2 starts weeks on Monday with the same January 1 rule. 21 is the ISO week, where week 1 is the week of the first Thursday and weeks start on Monday. |
Examples
Sunday, January 4, 2026 under two week systems
=WEEKNUM(DATE(2026,1,4),1)Result 2
| A | B | |
|---|---|---|
| 1 | Date | 1/4/2026 |
| 2 | Sunday system | 2 |
| 3 | ISO week | 1 |
WEEKNUM numbers the weeks of a year, and the numbering depends on an argument people leave off. January 4, 2026 is a Sunday. January 1 is a Thursday, so it sits in the Sunday-start week that began on December 28, 2025. That week is week 1 under the default, because it contains January 1. January 4 starts the next Sunday-start week, so the default result is 2.
The ISO system, return type 21, starts weeks on Monday and calls week 1 the week that contains the first Thursday. January 4 is still in that week, so the ISO number is 1. The two results are both right. They are not the same system. A payroll week that starts on Sunday should say so, with return type 1 or 2, and should not be compared with an ISO week number from another system. ISOWEEKNUM returns the ISO 8601 week number.