Excel function

WEEKNUMfunction

Returns which week of the year a date falls in.

All versions
=WEEKNUM(DATE(2026,11,18))

November 2026

Sun
Mon
Tue
Wed
Thu
Fri
Sat

Click a date on the calendar to change serial_number. Move the date near the first week of January and switch the type between 1, 2 and 21. Type 21 (ISO) can give a very different result. Try breaking it on purpose to see the errors.

Result

47

serial_number
Nov 18, 2026 (Wed)

The date whose week number you want.

return_type

The day the week starts on. Omitted means 1 (Sunday). Excel also has types 11 to 17.

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

  1. Example 1. Weeks start on Sunday

    =WEEKNUM(DATE(2026,11,18))

    47.

  2. Example 2. Weeks start on Monday

    =WEEKNUM(DATE(2026,11,18), 2)

    47.

  3. 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

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.