This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch openformula
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 9db5fcb77fd7007d5907e1df00c58263981690da
Author: Jim Jagielski <[email protected]>
AuthorDate: Wed Nov 18 12:16:35 2026 -0500

    odf_docs: record our WEEKNUM deviation from ODF
---
 odf_docs/ODF14-KNOWN-LIMITATIONS-PUBLIC.md | 1 +
 odf_docs/openformula-release-notes.md      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/odf_docs/ODF14-KNOWN-LIMITATIONS-PUBLIC.md 
b/odf_docs/ODF14-KNOWN-LIMITATIONS-PUBLIC.md
index 839f430d5f..9877c9d80e 100644
--- a/odf_docs/ODF14-KNOWN-LIMITATIONS-PUBLIC.md
+++ b/odf_docs/ODF14-KNOWN-LIMITATIONS-PUBLIC.md
@@ -71,6 +71,7 @@ These are read without error and have no effect:
 - `INDEX` on a row vector with only a row argument returns the column, as in 
other spreadsheets. ODF 1.4 removed that rule and calls the call an error.
 - `CONVERT` with `atm` uses 101324.996583 Pa; the ODF 1.4 table gives 
1.0132510E+5, a relative difference of 1.0e-6.
 - A trailing empty parameter before the closing bracket, as in 
`NPER(r;p;pv;;)`, is an error for every function except `IF`. An empty 
parameter in the middle works.
+- `WEEKNUM` with Mode 1 or 2 starts week 1 at the first week with at least 
four days in the year, as ISO 8601 does; `WEEKNUM(DATE(2026;1;1);1)` is 53. ODF 
1.4 makes the week containing January 1 week 1. Every Mode other than 1 is a 
Monday start with the same four-day rule, so Modes 12 to 17 do not start on 
their own weekday, Modes 21 and 150 give the ISO week, and a Mode outside the 
ODF list is not an error. Mode can't be left out.
 - `DATE` gives an error for dates before 15 October 1582. ODF 1.4 requires 
support only from 1583 and makes earlier dates implementation-defined.
 
 ## Not verified
diff --git a/odf_docs/openformula-release-notes.md 
b/odf_docs/openformula-release-notes.md
index 327f860334..ac6db89772 100644
--- a/odf_docs/openformula-release-notes.md
+++ b/odf_docs/openformula-release-notes.md
@@ -71,6 +71,7 @@ As-of 2026-11-18.
 - INDEX with one index on a one-row range returns that column, so 
`INDEX(H1:L1;3)` is the third cell. ODF 1.4 calls that an error. We're keeping 
the old behavior on purpose.
 - IFNA only replaces `#N/A` element by element in an array formula. In an 
ordinary formula the range is cut down to the cell in the formula's own row, 
and you get #VALUE! if there isn't one. `SUMPRODUCT(IFNA(A1:A3;0))` in C1 
returns the value of A1. Entered as array formulas, `SUM(IFNA(A1:A3;0))` and 
`SUMPRODUCT(IFNA(A1:A3;0))` both add up all three cells. IF behaves the same 
way: `SUMPRODUCT(IF(B1:B3>1;1;0))` outside an array formula gives #VALUE! in a 
cell below the data.
 - A text argument typed straight into SKEW or SKEWP gives `Err:504`. ODF 
allows either 0 or an error here.
+- WEEKNUM with Mode 1 or 2 starts week 1 at the first week with at least four 
days in the year, as ISO 8601 does, so `WEEKNUM(DATE(2026;1;1);1)` is 53. ODF 
makes the week containing January 1 week 1. Modes 11 to 17 are read as Mode 2, 
a Mode outside the ODF list is not an error, and Mode can't be left out.
 - SKEWP of symmetric data can return a tiny leftover like 3.7E-17 instead of 0.
 - DCOUNT and DCOUNTA with field 0 count all the matching records instead of 
giving an error. An empty criteria cell is ignored, so 
`DCOUNT(R1:T6;"Age";W1:W2)` counts all 5 records.
 - xls: HYPGEOMDIST with five arguments is saved as `NA()`; the xls function 
only takes four. NUMBERVALUE and RRI are saved under ODF names that we read 
back but Excel shows as #NAME?. F.DIST with three arguments is saved as 
`_xlfn.F.DIST`, which Excel shows as #N/A because it wants four.

Reply via email to