Bug 64519 - FORMATTING: Conditional Formatting dialog does not allow entering named ranges
Summary: FORMATTING: Conditional Formatting dialog does not allow entering named ranges
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.0.2.2 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
: 160255 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-05-13 08:12 UTC by André Colomb
Modified: 2025-12-27 17:41 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of the conditional formatting dialog not accepting a named range reference, (114.09 KB, image/png)
2013-05-13 08:12 UTC, André Colomb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description André Colomb 2013-05-13 08:12:09 UTC
Created attachment 79229 [details]
Screenshot of the conditional formatting dialog not accepting a named range reference,

Problem description: 

When working with conditional formatting, the rules are automatically adjusted when, for example, additional cells are inserted in an affected range. The user ends up with several rules for copied cells or altered rules for ranges which don't include the newly inserted cells.

It would be great if the user were able to use named ranges for conditional formatting. These rules would not have to be automatically adjusted for changed cell ranges, but just always refer to the same named range.

However, in the editing dialog for conditional formatting rules, the input entry for "Range" only accepts cell references, not references to named ranges. If entering the name of a named range, its background turns red and the formatting rule is not accepted.

Steps to reproduce:
1. Select some cells in an empty Calc document (e.g. A1:B9)
2. Create a named range by entering 'testrange' into the Name Box.
3. Choose Format - Conditional Formatting - Condition
4. The "Range:" field displays the selected cell range as A1:B9
5. Enter the defined name "testrange" into the field.

Current behavior:
The background of the "Range:" field turns red and the conditional formatting rule cannot be created.


Expected behavior:
The conditional formatting rule is created for the named range and affects all cells that are part of the named range. Subsequent changes to the named range definition do not alter the conditional formatting rule, which constantly refers to the range name.
              
Operating System: Windows 7
Version: 4.0.2.2 release
Comment 1 Markus Mohrhard 2013-05-13 08:52:25 UTC
I'm sorry but there are several limitations that prevent us to implement this.

We need to store the conditional format range in the cell attribute storage which forces us to make it explicit and we don't want to have a dependency between named ranges and all the ugly parts that we need for conditional formats.

Additionally the name "Named Range" or "Range Name" is misleading and we would need to parse the range name to check that it is only a range list and not a complex expression.

All in all I don't think that the benefit of this feature out-weights its problems. Additionally this would require the next major refactoring of the whole conditional format code which is a several month task as it affects all parts of the calc core code.
Comment 2 nobu 2025-12-23 22:02:28 UTC
*** Bug 160255 has been marked as a duplicate of this bug. ***