Bug 162619 - FORMATTING does not autorefresh
Summary: FORMATTING does not autorefresh
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.2.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calculate
  Show dependency treegraph
 
Reported: 2024-08-25 00:58 UTC by Rafal Kisiel
Modified: 2024-12-06 16:02 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Spreadsheet picturing no autorefresh conditional formatting (10.23 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-08-25 01:01 UTC, Rafal Kisiel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Kisiel 2024-08-25 00:58:31 UTC
Description:
Condition formating based on formula does not autorefresh in this case.

Steps to Reproduce:
1.Open sample spreadsheet;
2.Change value in B8 cell.

Actual Results:
You need to manually refresh column B formatting by: scroll or PgDn&PgUp or RecalculateHard

Expected Results:
Autorefresh like in column C


Reproducible: Always


User Profile Reset: No

Additional Info:
Similar to 2nd issue from https://ask.libreoffice.org/t/two-conditional-formatting-bugs-in-calc-anything-with-existing-formatting-overrides-conditional-formatting-and-does-not-update-in-realtime/53753

Version: 24.2.5.2 (X86_64) / LibreOffice Community
Build ID: bffef4ea93e59bebbeaf7f431bb02b1a39ee8a59
CPU threads: 6; OS: Windows 10.0 Build 22000; UI render: Skia/Vulkan; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded
Comment 1 Rafal Kisiel 2024-08-25 01:01:37 UTC
Created attachment 196004 [details]
Spreadsheet picturing no autorefresh conditional formatting
Comment 2 m_a_riosv 2024-08-25 02:21:49 UTC
The condition is always false. A way is to verify the formula in the spreadsheet. In this case it's easy, copy CF formula in B1 and drag down.

If I understand what is looking for, a more simple formula like:
INDEX(B:B;MATCH("X";$A:$A;0))="YES"
works just fine for me.
Don't forget to verify the option:
Menu/Tools/LibreOffice Calc/Calculate — Case sensitive.
Comment 3 ady 2024-08-25 03:31:53 UTC
(In reply to m_a_riosv from comment #2)
> The condition is always false.

I don't understand what you mean.

If I change cell B8 to "YES", then the condition results in FALSE, so the CF should react and change the background color of B1:B7. But, in order to actually see the change, you have to scroll that range out of the screen and scroll back to it, which is what the OP reported in comment 0.

It is true that the formula in the CF for cells B1:B7 seems over-complicated, but that is not the point.

The point is that the screen is not immediately refreshed with the CF result.

One detail: if the cells B1:B7 contain the formula (from the CF dialog)

 =INDIRECT(ADDRESS(ROW()+MATCH("X";INDIRECT(ADDRESS(ROW();1;4)&":"&ADDRESS(ROW()+16;1;4));0)-1;COLUMN();2;1))="NO" 

then the reaction on screen is immediately seen as soon as cell B8 is changed from NO to YES; there is no need to scroll in such case.