Is this a bug?
When copying and pasting cell content Calc updates cell references in the formuli appropriately. It does not, however, update cell references in conditional formatting. Example:
I have a spreadsheet for calculating student grades. Column one is student names. The rest of the row is conditionally formatted such that if the first column is blank (no student) the rest of the row is hidden. My conditional formatting statement is this:
Formula is IF($A$1="") Cell Style is Hidden.
If I copy and paste A2 to B2, the conditional formatting of B2 still references A1 instead of being updated to B1, forcing me to manually update conditional formatting every time I copy and paste. Very time consuming.
Is this a bug or per design? Is there a solution?
CJ
[Solved] Conditional formatting cell references not updated
-
- Posts: 18
- Joined: Tue Mar 04, 2008 7:17 am
[Solved] Conditional formatting cell references not updated
Last edited by NCJECulver on Tue Jun 24, 2008 11:36 am, edited 1 time in total.
- Hagar Delest
- Moderator
- Posts: 32661
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: Cond'l formatting cell references not updated
Change the formula to IF(A1="").
See here for more information: [Tutorial] Absolute, relative and mixed references.
Thanks to add '[Solved]' at beginning of your first post title (edit button) if your issue has been fixed.
See here for more information: [Tutorial] Absolute, relative and mixed references.
Thanks to add '[Solved]' at beginning of your first post title (edit button) if your issue has been fixed.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
-
- Posts: 18
- Joined: Tue Mar 04, 2008 7:17 am
Re: Cond'l formatting cell references not updated
Simple as that, huh? Thanks -- looks like it did the trick. And thanks for the link to the tutorial. Lots of stuff I didn't know.
Re: Cond'l formatting cell references not updated
Yep, the references used in conditional formatting refer relatively to the currently active cell. Imagine you would type the formula into the active cell. Additionally selected cells behave like copies, expanding relative references from the active cell like in copied formulas.NCJECulver wrote:Simple as that, huh? Thanks -- looks like it did the trick. And thanks for the link to the tutorial. Lots of stuff I didn't know.
However, there is a known bug which does not update references in conditional formatting: When you move a referenced cell/range, the movement will not be reflected in conditional formatting. Same issue with cell validation. A conditional format "Cell value =A1" will not update to X1 after moving A1 to X1 (regardless of relative or absolute). So don't apply validation and conditional formatting before your table layout is finished.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice