Created attachment 165877 [details] zip file with document to show the problem and screenshots Conditional formatting by formula is (occasionally?) not applied correctly, means not immediately after a change of source value, but later e.g. when the document is saved. Steps to reproduce the bug: - open "Test_Formula_(Blood_pressure).ods" from the attached zip file Values in columns A and B (Date and time) have a conditional formatting by formula that the font and background color are changed to green resp. lightgreen when at least one of the values in columns F, J and N is less than 100. Values in these 3 columns are computed by formula depending on values in columns C+D, G+H resp. K+L. - change value in cell L10 from 86 to 90 -> value in cell N10 automatically changes from 99 to 102 - result: cells A10 and B10 remain unchanged although the condition for conditional formatting is false, see screenshots 1 and 2 - save the document (or edit cell A10 or B10 e.g. by PF2 + exit without changes e.g. by Enter key), see screenshot 3 - result: font and background colors of cells A10 and B10 are changed now correctly (Standard, no background color) First I have assumed the behavior described above is related to the behavior described in Bug 137060. But it can be reproduced also with older versions of LibreOffice back until 3.3.0, means the bug is inherited from OpenOffice.
I think the issue has to-do with the use of INDIRECT in the CF formula. I remember @Markus complaining about the use of STYLE, also a volatile function inside CF. Volatile functions are calculated after every cell's change on the spreadsheet. Using Menu/Data/Calculate/Calculate hard, solve the issue But the better for this is change the formula: OR( AND((INDEX($F:$F;ROW()) > 0);(INDEX($F:$F;ROW()) < 100));AND((INDEX($J:$J;ROW()) > 0);(INDEX($J:$J;ROW()) < 100));AND((INDEX($N:$N;ROW()) > 0);(INDEX($N:$N;ROW()) < 100))) using INDEX instead INDIRECT, it is alsw quicker and less prone to errors because it refers to cells address, not to handwritten addresses. Any case seems there is a bug.
Many thanks for the hint to replace INDIRECT by INDEX! This solves my problem. I have a lot of documents with formulas containing INDIRECT. I will adapt them now step by step. I never was happy with the use of INDIRECT. Because of the handwritten adresses the formulas are hard to maintain in the case of neccessary changes and - as said in the hint - prone to errors.
Dear Stefan_Lange_KA@T-Online.de, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
I have tested with Version: 7.5.0.1 (X86_64) / LibreOffice Community Build ID: 77cd3d7ad4445740a0c6cf977992dafd8ebad8df CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: default; VCL: win Locale: de-DE (de_DE); UI: de-DE Calc: CL threaded Result: The bug is still present. For me the bug is no longer important after I have replaced INDERECT by INDEX in all my formulas.