WEEKNUM Function in Collabora Office Calc: Syntax, Examples and Compatibility
Use WEEKNUM in Collabora Office Calc to calculate a calendar week number for reports without confusing it with ISO week numbering. Two original examples, expected results, cautions and official software documentation.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: WEEKNUM returns a numeric week label under an explicit start-day and numbering system. Mode 2 starts weeks on Monday but assigns week 1 to the week containing January 1. Mode 21 uses ISO 8601, which can assign early-January dates to the previous ISO week-year.
Availability and version history
- Introduced: original Collabora release and launch date are not established by the sources reviewed.
- Availability: documented in Collabora Office 26.04 help, scoped to the desktop-help release.
- Platform scope: online and mobile deployments are not inferred from desktop documentation.
- Checked: October 14, 2026. Direct function section and independent calendar controls; no native Collabora test was performed.
Syntax and arguments
=WEEKNUM(date_number; [mode])
The date number is required. Mode is optional and defaults to 1, meaning Sunday-first System 1. Display the result as a number; it is not a date or a complete year/week identifier.
The official section documents these choices:
| System | Modes | Week begins | Definition of week 1 |
|---|---|---|---|
| 1 | 1 or 17 | Sunday | Contains January 1 |
| 1 | 2 or 11 | Monday | Contains January 1 |
| 1 | 12, 13, 14, 15, 16 | Tuesday through Saturday, respectively | Contains January 1 |
| 2 | 21 | Monday | Contains January 4, equivalently the first Thursday |
| 2 | 150 | Monday | Same ISO system; documented interoperability mode |
Mode 150 is explicitly listed by Collabora for interoperability with Gnumeric. This does not establish that every other product accepts it.
Two original Monday-first controls
=WEEKNUM(DATE(2026;1;1);2)
=WEEKNUM(DATE(2026;1;5);2)
Independent expected results are 1 and 2. January 1 belongs to the opening partial System-1 week. Monday January 5 begins the next Monday-first week.
The older article’s unconditional statement that January 1 always belongs to week 1 needs the System-1 qualification. ISO mode can return a late-year week number for an early-January date.
Example 3: isolate the first-day setting
For Sunday 4 January 2026:
=WEEKNUM(DATE(2026;1;4);1)
=WEEKNUM(DATE(2026;1;4);2)
=WEEKNUM(DATE(2026;1;4))
Expected results are 2, 1 and 2. Sunday-first mode starts a new week on January 4; Monday-first mode waits until January 5. Omission follows the documented default mode 1.
Different week numbers can therefore result from the same calendar date without either formula being mathematically wrong. The reporting convention is part of the specification.
Advanced example: compare System 1 with ISO at New Year
=WEEKNUM(DATE(2021;1;1);2)
=WEEKNUM(DATE(2021;1;1);21)
Expected results are 1 and 53. January 1, 2021 is Friday. Its ISO week began on Monday December 28, 2020 and contains Thursday December 31, so it belongs to ISO week 53 of 2020.
For Monday January 4, 2021, mode 2 gives 2, while mode 21 gives 1. Merely choosing a Monday start does not make a System-1 week number ISO-compliant.
Advanced example: keep the ISO week-year alongside the number
For a date in A2, the ISO week-year is the calendar year of that week’s Thursday. Using documented Monday-first WEEKDAY numbering:
=YEAR(A2-WEEKDAY(A2;2)+4)
=WEEKNUM(A2;21)
For 1 January 2021, the expected pair is 2020, 53. For 30 December 2024, it is 2025, 1. The latter date’s ISO Thursday is January 2, 2025.
The bare calendar year from YEAR(A2) would be wrong as the ISO week-year in both examples. Keep both numeric fields rather than merging weeks from multiple years under only a repeated week number.
Advanced check: audit the official historical examples
The reference gives ISO-mode results 52 for 1 January 1995 and 53 for 1 January 1999. Their first ISO weeks begin on January 2, 1995 and January 4, 1999, respectively.
These can be independently checked from the Thursday/January-4 rule. They reinforce why the original January-1 claim must not be generalized beyond System 1.
Input and compatibility limits
Construct test dates with DATE. Unquoted slash or dash expressions perform arithmetic; text conversion and historical serials have separate settings and limitations.
Use WEEKDAY for a day-of-week position, and YEAR for a calendar-year component. The selected help does not give a complete invalid-mode or coercion error table, so no guessed code or undocumented mode is certified here.
The week-number controls are independent Gregorian-calendar expectations. Native historical-date behavior, every imported-file convention and separate Online/mobile deployments remain untested.
Related guides
References and verification
The complete older guide and original formulas were reviewed. Calendar calculations are independent expectations under the explicit conditions above; volatile functions were not executed, and retained source conflicts are not certified native behavior.