Bug 153250 - Conditional formatting of cells with content equalling value does not work as expected (German version)
Summary: Conditional formatting of cells with content equalling value does not work as...
Status: CLOSED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.3.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-27 17:32 UTC by Andreas Neudecker
Modified: 2023-01-27 18:14 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
LibreOffice Calc table with samples for problems with conditional formatting (16.84 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-01-27 17:32 UTC, Andreas Neudecker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Neudecker 2023-01-27 17:32:53 UTC
Created attachment 184964 [details]
LibreOffice Calc table with samples for problems with conditional formatting

I am trying to format cells with optional contents depending on values like "A20", "B37", "D15" (text strings).
The dialogue for the conditional formatting offers an option for that, like "Target value equals" (German: "Zielwert" "ist gleich").

Now, if I set the formatting for the cells that fulfil this condition to some color, all cells NOT fulfilling it get coloured. So I checked, and indeed: if I switch the condition to "Target value unequal to" (German: "Zielwert" "ist ungleich"), the cells with contents of either "A20", "B37" or "D15" get a coloured background.

The consequence of this behaviour is that it seems to be impossible to set independent discriminating conditional formatting for more than one such conditions, as only the last formatting will be actually set (if, as in my case, all formattings apply to background colour only).

Examples:

if cell content = A20, then red background

=> all EMPTY cells in column get red background. Neither cells with content = "A20", nor with any other content are coloured.


if cell content = A20, then red background AND 2nd conditional formatting set
if cell content = B37, then green background

=> Empty cells still get red back background, cells with contents any content.


I attach a sample table with these settings.
The conditional formatting of the cells is done using formats like "A20 red" or "B37 green" …

May be I do not understand how it works.
But then the manual does not clarify it.
May be the German translation doesn't give the correct meaning (but I don't think so)
May be, the conditional formatting doesn't work as expected.

But right now, I do not see a way I can use conditional formatting for the result I expect (see sample file).

Kind regards.
Comment 1 Eike Rathke 2023-01-27 18:14:18 UTC
Your comparison values are relative cell references. If you want to compare to literal text then use text strings enclosed in double quotes, like "A20".