Bug 139536 - [XSLX] Conditional Formatting is lost on import
Summary: [XSLX] Conditional Formatting is lost on import
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:xlsx
Depends on:
Blocks: XLSX-Conditional-Formatting
  Show dependency treegraph
 
Reported: 2021-01-11 11:02 UTC by Dennis Roczek
Modified: 2025-09-20 03:12 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
file from excelvorlage.de (41.91 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-01-11 11:03 UTC, Dennis Roczek
Details
The original xlsx file in Excel and Calc 7.2 (195.44 KB, image/png)
2021-01-11 13:42 UTC, NISZ LibreOffice Team
Details
Good working example in MSO O365 (128.86 KB, image/png)
2021-01-11 14:34 UTC, Dennis Roczek
Details
Modified example file (65.04 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-09-08 09:28 UTC, NISZ LibreOffice Team
Details
Conditional formatting rules of the modified example in Excel and Calc (191.88 KB, image/png)
2021-09-08 09:30 UTC, NISZ LibreOffice Team
Details
Named ranges of the modified example in Excel and Calc (176.35 KB, image/png)
2021-09-08 09:37 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Roczek 2021-01-11 11:02:14 UTC
Description:
1. get file at http://www.excelvorlage.de/entry/118/kreditberechnung-mit-sondertilgungen-2
2. Fill fields: D4=100.000; D5=2%; D6=5; D7=01.01.2021; D8=500
3. press F9
4. scroll down to line 65: everything 65 and following lines should be hidden per conditional formatting

Steps to Reproduce:
see above

Actual Results:
see above

Expected Results:
see above


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.0.4.2 (x64)
Build ID: dcf040e67528d9187c66b2379df5ea4407429775
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded
Comment 1 Dennis Roczek 2021-01-11 11:03:05 UTC
Created attachment 168814 [details]
file from excelvorlage.de
Comment 2 Dennis Roczek 2021-01-11 11:04:05 UTC
You might have to click F9 when being in cell G18. A separate ticket will be filled in a minute.
Comment 3 NISZ LibreOffice Team 2021-01-11 13:42:26 UTC
Created attachment 168817 [details]
The original xlsx file in Excel and Calc 7.2

I don't get the expected result in Excel 2013 either. All rows are visible between 18 and 377.

Nor in:
Version: 7.2.0.0.alpha0+ (x64)
Build ID: 8e691505d4675b878b30bd00cd2e4fb4f794f0ef
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

Both Excel and Calc give and #N/A error in D13 when filled with the given numbers.
Comment 4 Dennis Roczek 2021-01-11 14:34:08 UTC
Created attachment 168820 [details]
Good working example in MSO O365

See line 64 and later: they are "hidden" by color. The second conditional formatting rule is not imported in Calc.
Comment 5 NISZ LibreOffice Team 2021-09-08 09:28:11 UTC
Created attachment 174879 [details]
Modified example file

I managed to get it visible in Excel by leaving the D8 field empty. Also changed the CF rule a bit, to make the invisible text formatting orange instead, so it's presence more clearly visible.

Can confirm that the formatting is not applied to the text in:

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c7b5e6566d9b24a0a996c739a945004d9aadee2f
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

The conditions look to be imported fine though.

To me it looks more like an issue with the forest of named ranges containing formulae, which is used in the condition. I could not minimize it enough yet to understand which step does not work.
Comment 6 NISZ LibreOffice Team 2021-09-08 09:30:19 UTC
Created attachment 174880 [details]
Conditional formatting rules of the modified example in Excel and Calc

These seem to be imported fine.
Comment 7 NISZ LibreOffice Team 2021-09-08 09:37:00 UTC
Created attachment 174883 [details]
Named ranges of the modified example in Excel and Calc

This part is more suspicious... the condition for the text coloring seems to be imported, but does not work:

IF(ROW(A18)>Last_Row;1; 0)

Last_Row = IF(Values_Entered;Header_Row+Number_of_Payments;Header_Row)
   Values_Entered = IF(Loan_Amount*Interest_Rate*Loan_Years*Loan_Start>0;1;0)
   Header_Row = ROW($Tilgungstabelle.$17:$17)
   Number_of_Payments = MATCH(0,01;End_Bal;-1)+1

Loan_Amount, Interest_Rate, Loan_Years, Loan_Start are references to D4:D7 cells.
End_Bal = $Tilgungstabelle.$I$18:$I$377
Comment 8 QA Administrators 2023-09-09 03:06:18 UTC Comment hidden (obsolete)
Comment 9 Dennis Roczek 2023-09-20 12:27:34 UTC
nothing changed for me using

Version: 7.6.1.2 (X86_64) / LibreOffice Community
Build ID: 60(Build:2)
CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Ubuntu package version: 4:7.6.1~rc2-0ubuntu0.22.04.1~lo2
Calc: threaded
Comment 10 QA Administrators 2025-09-20 03:12:14 UTC
Dear Dennis Roczek,

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