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." )
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.
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).
Dear Bug Submitter, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping-20180703
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