Apache OpenOffice (AOO) Bugzilla – Issue 124625
large row numbers exceeding .xls limit become unpredictable broken row numbers in .xls
Last modified: 2014-04-09 05:23:27 UTC
Please export this spreadsheet as .xls, and read it again. Sheet1 is empty Sheet2 contains in A1 =SUM($Sheet1.A1:A65535) --> =SUM($Sheet1.A1:A65535) OK =SUM($Sheet1.A1:A65536) --> =SUM($Sheet1.A1:A1048576) wrong =SUM($Sheet1.A1:A65537) --> =SUM($Sheet1.#REF!#REF!:#REF!#REF!) broken (I am pretty sure that this is a very simple bug, just change somewhere SHORT to INT).
Confirmed with AOO410m14(Build:9760) - Rev. 1585331 2014-04-07_04:11:07 - Rev. 1585379 Debian
I am not sure that this is really an error. When I save the document in Excel 97 format I am warned that the document can not be converted. I suspect that that format does not allow row numbers that take more than 16 bits to encode.
Created attachment 83136 [details] Calligra Sheets vs. Calc
Created attachment 83137 [details] Excel 2013
Definitively a bug, but UNCONFIRMED until we know whether EXCEL 97 supports those row numbers and some additional details have been clarified
Excel Specifications can be found here: <http://office.microsoft.com/en-us/excel-help/excel-specifications-and-limits-HP005199291.aspx>: Maximum limit 65536 rows by 256 columns (a) If I save a document with contents in rows 65536 or bigger I get a warning "too many rows for target format". That warning is missing in LibO, AOO does it better (b) No concrete message if only a reference in a formula has a too large row number (c) The problem is not limited to SUM. Also in Additions seem to be broken (d) Currently I am not 100% sure, but it seems that export to .xls breaks Numbering in a crazy way. A row number 100 000 will be shown as 34464 (what is the difference betwene 100 000 and excel limit 65536 rows, But the correct looking "Tabelle1.A34464)" does not work before I replace a digit with the same digit typed manually (e) There also is a problem with simple references to large row numbers: "=Tabelle1.A65535" ub .ods becomes =$#REF!.IW65535 in exported .xls what might be related (f) I think too big row numbers simply should be cut to .xls maximum. (g) similar problems (but with different details in some cases) already with OOo 3.3.0 This research still is rather incomplete, not "ready for fixing", but I currently do not have the time to continue.