ISOWEEKNUM
Returns the ISO 8601 week number (1 to 53) for a date serial.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=ISOWEEKNUM(serial_number)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
serial_number | number | Required | — |
Remarks
- A date argument may be text holding a date or time (
"10/26/1999","1999-10-26 14:05"), read as its serial; text that is neither a number nor a date returns#VALUE!. - Weeks start on Monday and week 1 is the week containing the first Thursday of the year.
- Input serials are truncated to whole dates before evaluation.
- Serials are read using the workbook's date system (Excel 1900 or Excel 1904).
Examples
Find the ISO week for the second Monday in January.
Formula =ISOWEEKNUM(DATE(2024,1,8))
Expected result 2
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
An early January date can belong to the previous ISO week-year.
Formula =ISOWEEKNUM(DATE(2021,1,1))
Expected result 53
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The first Monday of 2021 starts ISO week one.
Formula =ISOWEEKNUM(DATE(2021,1,4))
Expected result 1
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
An invalid date cannot be placed in an ISO week.
Formula =ISOWEEKNUM("invalid")
Expected result #VALUE!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
ISO week at year start
Formula =ISOWEEKNUM(45292)
Expected result 1
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
ISO week crossing year boundary
Formula =ISOWEEKNUM(42370)
Expected result 53
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Can early-January dates return week 52 or 53?
Yes. ISO week numbering can place dates near New Year in the prior ISO week-year.