ISOWEEKNUM Function (Gnumeric)
Learn the ISOWEEKNUM function in Gnumeric: Calculates the ISO 8601 calendar week for the given date.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: Documented by 1.12.62; original introduction not established.
- Availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
- Scope: Desktop; the fn-date function module must be included and enabled.
- Checked: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.
Quick answer
=ISOWEEKNUM(DATE(2021,1,1)) gives the expected result 53, not 1. The date is Friday, January 1, 2021, within the last ISO week of 2020. An ISO week begins on Monday; week 1 is the week containing the year’s first Thursday. This can cause early-January or late-December dates to belong to different ISO years from their ordinary calendar year.
Exact Gnumeric syntax and version scope
=ISOWEEKNUM(date)
date(required): a numeric spreadsheet date serial value or a cell/formula that evaluates to a valid date serial. Exactly one argument is declared by the Gnumeric 1.12.62fn-datefunction registry ("f"). There is no optionalreturn_type, configurable week start, or extra argument.- Return: an integer ISO week number from 1 through 53 for valid dates. The official help and tagged implementation agree on the Monday/first-Thursday algorithm.
- Errors: tagged Gnumeric 1.12.62 implementation returns
#VALUE!if date conversion fails validation. Specific behaviour of blanks, numerical limits or text coercion was not executed in Gnumeric; avoid treating every invalid-looking input identically. - Scope: the function is present in the Gnumeric 1.12.62 tagged implementation. This is not evidence that it was introduced in this release. Registry reports implementation COMPLETE but NO_TESTSUITE; the public function catalogue uses a different label. Documentation/source availability is not a native execution result.
- Locale: formula examples use the English-function-name convention and comma argument separators in
DATE(y,m,d). Installed locale can affect argument punctuation, text dates and displayed date formatting. Construct dates usingDATErather than typing an ambiguous string such as01/02/2021.
The definitions and failure path above are documentation/source checks on the tagged help_isoweeknum, gnumeric_isoweeknum and function registration, accessed 2026-10-11. Gnumeric’s official function catalogue was also checked 2026-10-11.
Build a reproducible worksheet
Enter these actual Gnumeric date formulas in A2:A10; put =ISOWEEKNUM(A2) in B2, and fill B2 down through B10. Add =ISOYEAR(A2) in C2 and fill down to confirm the correct week-year label.
On a narrow screen, scroll this table sideways to see every column.
| Row | A: input date formula | Expected ISO week (B) | Expected ISO week-year (C) |
|---|---|---|---|
| 2 | =DATE(2000,1,1) |
52 | 1999 |
| 3 | =DATE(2008,1,1) |
1 | 2008 |
| 4 | =DATE(2016,1,1) |
53 | 2015 |
| 5 | =DATE(2019,12,30) |
1 | 2020 |
| 6 | =DATE(2020,12,31) |
53 | 2020 |
| 7 | =DATE(2021,1,1) |
53 | 2020 |
| 8 | =DATE(2021,1,4) |
1 | 2021 |
| 9 | =DATE(2024,12,30) |
1 | 2025 |
| 10 | =DATE(2026,12,31) |
53 | 2026 |
Practical use: year-week keys without January surprises
For transactions dated in A2, build a stable sort/group key:
=ISOYEAR(A2)&"-W"&TEXT(ISOWEEKNUM(A2),"00")
Expected for 2021-01-01: 2020-W53. This example assumes Gnumeric’s TEXT(number,format) returns the zero-padded week as shown; only the ISO week and year components were independently calculated here. The compound TEXT rendering requires a native check. A formula using numerical columns =ISOYEAR(A2) and =ISOWEEKNUM(A2) avoids any string-formatting uncertainty until that test.
Unlike YEAR(A2), ISOYEAR(A2) returns the week-based year, so joining calendar year to an ISO week number can mislabel the last week of 2019 or the first week of 2021.
Advanced: Monday that starts the ISO week
For any valid date serial in A2, this companion calculation gives the serial date of that week’s Monday:
=A2-WEEKDAY(A2,2)+1
Example: For 2021-01-01, this calculation yields Monday 2020-12-28. Format the result cell as a date. The arithmetic follows the week/day specification; Gnumeric’s date formatting and live execution were not tested in the recorded checks.
Common mistakes and troubleshooting
- Expecting January 1 to be week 1: 2021-01-01 belongs to ISO week 53 of 2020. Use
ISOYEARfor its week-year, notYEAR. - Confusing
WEEKNUMwithISOWEEKNUM:WEEKNUM(date)defaults to a Sunday-start scheme with Jan 1 in week 1. Gnumeric documents ISO-styleWEEKNUM(date,21)separately, but check the exact locale/formula syntax for your version. - Using slash-formatted date text: For predictable examples, construct real date serials with
DATE(year,month,day), or convert validated imported text to dates before calculating. - Error value: source-level date conversion/validation failure gives
#VALUE!. Cell errors, blanks and text coercion require separate native tests; this guide does not assign unobserved error outputs. - Time of day: A spreadsheet timestamp may have a fractional-day part; the integer calendar date is what ISO week numbering is based on. Date and timestamp coercion details require a native test.
- Dates around ISO week 53: Not every year has week 53. 2020 does; early 2021 therefore starts in week 53 of 2020.
Compatibility and limitations
Excel provides ISOWEEKNUM(date) using ISO 8601 numbering, so the core algorithm and these date results align conceptually; error coercion and locale specifics must be tested for each program. LibreOffice Calc supports ISO-based week numbering through WEEKNUM(date;21) per its official documentation, with localized separators. For cross-program workbooks, use unambiguous numeric DATE formulas, verify serialization and date systems, and avoid assuming Gnumeric’s catalogue/test metadata applies elsewhere. Gnumeric’s tagged source explicitly records no project testsuite for this function; no native executions were possible in this run.
Related Gnumeric tutorials
Official sources
- GNOME/Gnumeric source tag
GNUMERIC_1_12_62:plugins/fn-date/functions.c—help_isoweeknum, date conversion, validation andfargument declaration, accessed 2026-10-11; file Git blob SHA48039e8480fabf4fb241e2ee3341ec5160952344. - Gnumeric function catalogue, accessed 2026-10-11, for function presence and web-side classifications.
- GNOME Gnumeric release archive, accessed 2026-10-11, confirms the tagged release scope.
- Microsoft Excel ISOWEEKNUM documentation, checked 2026-10-11, for conceptual interoperability.
- LibreOffice Calc WEEKNUM help, checked 2026-10-11, for ISO system method 21.
How this guide was checked
The syntax and behaviour are based on the Gnumeric references cited above. The sample calculations were independently checked; they are expected results, not outputs observed in Gnumeric. Test locale-sensitive text conversion and imported files in your own installation. View the example-check record.