ReferenceFunctionsDate & Time Functions
WEEKNUM
WEEKNUM: Returns the week number of the year for a date serial.
Summary
Returns the week number of the year for a date serial.
Remarks
- Default
return_typeis1(week starts on Sunday). - Supported
return_typevalues are1,2,11-17, and21(ISO week numbering). - Unsupported
return_typevalues return#NUM!. - Input serials are interpreted using Excel 1900 date mapping rather than workbook
1904interpretation.
Examples
Default week numbering
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
1
ISO week numbering
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
53
Related functions
FAQ
What is special about return_type 21 in WEEKNUM?
return_type=21 switches to ISO week numbering, matching ISOWEEKNUM behavior.
Runtime metadata
Category
Date & Time
Signature
WEEKNUM(arg1: Number, arg2…: Number)Arity
min 1, max variadic
Arguments
arg1Number · Scalar · coercion NumberLenientText
arg2Number · Scalar · coercion NumberLenientText
Caps
PURE
Source