Bug 147522 - Table-based totalization formulas convert to lower-case cell references, while the cells they reference stay in title case (correctly), causing totalizations to fail with Err:508 and Err:507
Summary: Table-based totalization formulas convert to lower-case cell references, whil...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.3.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-18 18:06 UTC by aev
Modified: 2022-12-30 23:13 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Spreadsheet generated by me that contains a table with totalization formulas referencing cells and cell ranges within the same table (27.84 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2022-02-18 18:06 UTC, aev
Details
ODS export of the XLSX attachment, Calc version 7.4.2.3 (28.91 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-12-28 15:31 UTC, aev
Details
File saved as xlsx (29.77 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2022-12-30 23:13 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aev 2022-02-18 18:06:13 UTC
Created attachment 178385 [details]
Spreadsheet generated by me that contains a table with totalization formulas referencing cells and cell ranges within the same table

When opening a report I generated for Excel in Calc, table-based totalization formulas get converted to lower-case cell references, while the cells they reference stay in title case (correctly), causing totalizations to fail.

See attached report.

When this same spreadsheet opens in Excel, that conversion does not happen. The formulas are generated with matching capital case. If adjusted in the copy Calc creates, the error resolves and totalizations are calculated. 

Calc should not be lower-casing these cell references.
Comment 1 m_a_riosv 2022-02-20 15:25:20 UTC
The is corrupted also for
Microsoft® Excel® for Microsoft 365 MSO (Version 2201 Build 16.0.14827.20180) 32-bit
Comment 2 Buovjaga 2022-12-13 13:00:33 UTC
You say you created this in Calc. Can you attach an ODS version?

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 3 aev 2022-12-28 15:31:38 UTC
Created attachment 184375 [details]
ODS export of the XLSX attachment, Calc version 7.4.2.3
Comment 4 aev 2022-12-28 15:33:24 UTC
Same happens in Calc version 7.4.2.3. ODS export attached, as requested.
Comment 5 aev 2022-12-28 15:33:35 UTC
Moving status back to unconfirmed, as requested.
Comment 6 m_a_riosv 2022-12-28 21:43:00 UTC
The issue is that 'labels' in calc https://help.libreoffice.org/latest/en-US/text/scalc/guide/address_auto.html?DbPAR=CALC#bm_id3148797
are not the same as in Excel the structured references.

In P31: =SUBTOTAL(109;Summary[Buy 1])
works for me.
Please take a look on
https://wiki.documentfoundation.org/ReleaseNotes/5.1#Table_structured_references
Comment 7 aev 2022-12-30 03:02:37 UTC
The problem is that after converting from the Excel sheet, in which the references and formulas work, to a Calc sheet, the formulas fail. It means that during the conversion, something went wrong. As Miguel pointed out: Calc can do it when using labels. If that is what is needed to keep the formulas working, then the conversion should have made that happen. The end user (me) should not have to worry about such things. Converting from the most important competition should work flawlessly.
Comment 8 m_a_riosv 2022-12-30 23:13:29 UTC
Created attachment 184405 [details]
File saved as xlsx

You need to save it always a xlsx. ODF doesn't support these formulas, and as I know it is not i
Any further development should be reported as 'enhancement'.n development to support them.