WEEKNUM Function in Calligra Sheets: Syntax, Examples and Compatibility
Use WEEKNUM in Calligra Sheets 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: calculate a calendar week number for reports without confusing it with ISO week numbering in Calligra Sheets. The reproducible examples below use explicit values so the formula’s meaning is testable without a large workbook.
Evidence: The function name and syntax are documented in the linked vendor function reference. Expected outputs were independently reasoned or checked outside the application. These are not native Calligra Sheets test results. A guide being published here does not certify every software release or file-import scenario.
Availability and version history
- Introduced: Documented by 26.08.2; original introduction not established.
- Availability: Supported in Calligra Sheets 26.08.2, based on the function-specific registration.
- Scope: The official application listing provides Linux installation; other packaged builds are unverified here.
- Checked: October 14, 2026. Documentation/source check; no new native test in Calligra Sheets 26.08.2.
Syntax and arguments
=WEEKNUM(serial_number; [return_type])
serial_number is the date. Type 2 begins weeks on Monday, but week 1 is still the week that contains January 1.
Best use case: Calculate a calendar week number for reports without confusing it with ISO week numbering.
Set up the example sheet
Use a small control table containing 1 January 2026 and 5 January 2026. Create the dates with DATE rather than typing locale-dependent strings.
Enter the formula in an unused cell. For a formula returning several values, leave an unobstructed area where those values can expand. These examples use semicolons between formula arguments in the documented Calc-style syntax; adjust separators if your application or regional settings differ.
Worked example 1: WEEKNUM with known input
=WEEKNUM(DATE(2026;1;1);2)
Expected output: 1.
A January 1 date always falls in WEEKNUM week 1, even if the week is incomplete.
Worked example 2: a second WEEKNUM case
=WEEKNUM(DATE(2026;1;5);2)
Expected output: 2.
Monday 5 January starts the next Monday-first week after the opening partial week.
Compare both results before replacing literal values or short sample ranges with your own workbook data. For a spilling formula, compare every output cell, not only the top-left result.
Practical advice and troubleshooting
When this formula helps: When you need ISO 8601 weeks, use ISOWEEKNUM where supported or the officially documented ISO return mode; WEEKNUM(…,2) is not equivalent near year boundaries.
Important edge case: The same late-December date may belong to a different ISO week-year than its calendar year. Always record both conventions in exports.
If the result differs, first verify the text-versus-number types of the input cells, the argument separators for your locale, and the range size. For dynamic arrays, inspect occupied cells in the output area. An error that looks like a missing function may reflect a software version rather than incorrect data.
Compatibility and version considerations
The KDE Calligra Sheets manual explicitly documents these names. Semicolon argument syntax is used. NETWORKDAY is a separate documented function name; it must not be silently called NETWORKDAYS. Both products document WEEKNUM, but migration must preserve the return_type argument and the meaning of week 1. The Excel/Google comparison is background only, not a claim of identical behavior in Calligra Sheets.
Check your installed release for availability and dynamic-array support.
Function availability and parameter behavior must be judged for the specific application and release; a function documented in one spreadsheet does not automatically work in another.
Application-specific source note: The KDE Calligra Sheets manual explicitly documents these names. Semicolon argument syntax is used. NETWORKDAY is a separate documented function name; it must not be silently called NETWORKDAYS.
Formula separator: These examples use semicolons for the function-argument separators. Locale settings can change entry conventions.
Related guides and official documentation
-
Calligra Sheets documentation for WEEKNUM — function syntax and current vendor information.
Editorial verification: Function name checked in official vendor catalogue on 2026-10-12. The two example outputs are independently reasoned; no native application run, screenshot, or version-specific output is claimed. Review the editorial testing standards if you require stronger proof before importing a workbook.