Bug 114331 - FILEOPEN: Opening XLSX documents does not recalculate sheet formulae
Summary: FILEOPEN: Opening XLSX documents does not recalculate sheet formulae
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.4.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-08 04:16 UTC by Daniel Collis
Modified: 2018-07-31 09:42 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Collis 2017-12-08 04:16:44 UTC
When creating XLSX files with the Python package, XlsxWriter ( http://xlsxwriter.readthedocs.io/ ), which contains formulae, Calc when opening that file will not recalculate the values. Apparently there is a global flag in the XLSX spec which indicates that upon opening, the spreadsheet application should recalculate all the formulae.[1] When opening in Microsoft Excel, the formulae are recalculated as they should be.

[1] - http://xlsxwriter.readthedocs.io/ ( "XlsxWriter doesn’t calculate the result of a formula and instead stores the value 0 as the formula result. It then sets a global flag in the XLSX file to say that all formulas and functions should be recalculated when the file is opened." )
Comment 1 Mike Kaganski 2017-12-08 06:33:15 UTC
Please attach a sample file to be able to see the issue. Isn't it evident from the beginning, that if you talk about "some generated files don't do this and that", then others need such file to be able to see, and then to work on that?

Also, please try to provide more useful links when citing a documentation (like to specific chapter, e.g. http://xlsxwriter.readthedocs.io/working_with_formulas.html), instead of generic documentation index, expecting reader to go and read all the documentation in search of the cited excerpt.
Comment 2 Mike Kaganski 2017-12-08 06:41:51 UTC
Also worth mentioning (although it's not a solution to the problem as you described it, which is some attribute in XLSX that LibreOffice apparently ignores, while possibly should not): there exist a LibreOffice Calc configuration option group (under Options-LibreOffice Calc-Formula), named "Recalculation on File Load", which control if XLSX and not-LO-generated ODS are recalculated on load (globally, regardless of the flag you mentioned).
Comment 3 QA Administrators 2018-07-03 14:16:15 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2018-07-31 09:42:31 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20180731