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.

All current Excel versions. Also in Excel for the web and Google Sheets.

Syntax =WEEKNUM(serial_number, [return_type])

WEEKNUM
=WEEKNUM(DATE(2026,1,4),1)

Arguments

NameRequiredWhat to pass
serial_numberRequiredA real date.
return_typeOptional1, 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

=WEEKNUM(B1,1)B2
Weeks
AB
1Date1/4/2026
2Sunday system2
3ISO week1
A picture of the sheet, not a live calculator. B3 is the ISO week number. January 1, 2026 is a Thursday.

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.