Bug 162559 - conditional formatting does not work with cell reference
Summary: conditional formatting does not work with cell reference
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
24.2.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Buovjaga
URL:
Whiteboard: target:25.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-22 09:51 UTC by nachhaltig
Modified: 2024-08-23 12:07 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screeshot Cell Referenz Bug (181.89 KB, image/png)
2024-08-22 09:51 UTC, nachhaltig
Details
Cell Referenz Bug (25.11 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-08-22 18:14 UTC, nachhaltig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nachhaltig 2024-08-22 09:51:11 UTC
Created attachment 195952 [details]
Screeshot Cell Referenz Bug

I use a table with random numbers, as in the instructions 

https://help.libreoffice.org/latest/de/text/scalc/guide/cellstyle_conditional.html?DbPAR=CALC 

I have used the complete instructions. If I then use the conditional formatting, which refers to a fixed cell that is defined with the condition cell value is greater than “cell” and with the second condition cell value is less than “cell”, then almost all cells are selected as a result, except for the first cell A1, although half of the cells are smaller than the desired value. 

It doesn't matter whether I use a cell with a formula or with a fixed number. I1 is with formula I2 is with a number, for both the conditional formatting does not work.

If I enter the same value as a number in conditional formatting instead of the cell, the conditional formatting works.
Comment 1 ady 2024-08-22 11:37:25 UTC
Please go to the report web page (in this case, <https://bugs.documentfoundation.org/show_bug.cgi?id=162559>) and click on the "Add an attachment" link in that page, in order to attach a minimal sample spreadsheet file that would reproduce the problem.
Comment 2 nachhaltig 2024-08-22 18:14:36 UTC
Created attachment 195966 [details]
Cell Referenz Bug
Comment 3 ady 2024-08-22 18:37:21 UTC
Using attachment 195966 [details], in the CF conditions, all you have to do is to change the current relative reference (cell I1), to be an absolute reference (cell $I$1), so as to obtain the desired result.

Next time that you have some doubt, please go first to <https://ask.libreoffice.org> and post your doubt / question there. If other users can confirm that there is really a bug, only then open a bug report (and you can then also add a link to the specific topic).

I am closing this report now.
Comment 4 nachhaltig 2024-08-23 06:01:38 UTC
Many thanks for the quick check and help. Now I know that this is described incorrectly in the German manual.

As this is also the official manual, I assumed that it had been checked.


I will report this to the German team so that the instructions can be corrected. Next time I will also ask via aks.libreoffice.org as written.
Comment 5 Buovjaga 2024-08-23 09:20:40 UTC
Let's fix the help page.
Comment 6 Buovjaga 2024-08-23 09:30:26 UTC
Patch: https://gerrit.libreoffice.org/c/help/+/172309
Comment 7 Commit Notification 2024-08-23 11:12:28 UTC
Ilmari Lauhakangas committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/b27934a3330f48716085cacbc2054a605675f2a5

tdf#162559 Clarify conditional formatting example