Currently, if you have a conditional formatting rule "equals 0", all fields with a true zero-value, or fields without a value trigger the rule. It is not possible to add a rule that triggers on "no value". It should be possible, however.
Hi Ulrich, thanks for reporting. Please could you attach a sample file with issue.
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 INVALID due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/FDO/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
Created attachment 105717 [details] Test Case Sorry, first I thought the issue is so simple that a test case isn't actually needed, but then I lost that bug in the personal radar. Anyway here's a test case where you see that cells with no value are treated the same as those with value zero when the condition is "equals zero".
+1 Since Ulrich provided a sample file, I think this should be changed to UNCONFIRMED.
Agreed..this could be a useful feature to differentiate empty cell (no value) and zero value within CF.
Set cell cursor on Cell A1. Define condition as: Condition type "Formula is" with formula "AND(A1=0;NOT(ISBLANK(A1)))" or with formula "IF(ISBLANK(A1);FALSE();A1=0)" on range "A1:A7". Because the address A1 is relative it adapts for the other cells of the range to e.g "AND(A7=0;NOT(ISBLANK(A7)))" for cell A7. Unfortunately the ODF part 2 has in section "6.3.5 Conversion to Number" the rule: "If the expected type is Number, then if value is of type Reference ... If the cell is empty (blank), use 0 (zero) as the value. ..." The comparison with operator = and one value 0 expects a number from the reference A1. So getting "A1=0 return false for an empty cell A1" seems only possible, if not using namespace "of:".
You can use condition as <Cell value - equal - ""> and style Default for it to resolve your problem when value in cell equal zero. This condition should be first in list of conditions for your range