Forum Discussion
Kjell Rilbe
Nov 15, 2017Copper Contributor
Keep conditional formatting range when inserting/deleting cells/rows/columns?
Hi, I sometimes use conditional formatting. For each entry, there's a cell range that it applies to. Often I need it to be used on the entire sheet, or at least a large range of it, i.e. all rows...
- Jan 27, 2022
Was having the same issue and so my search led to this forum, searched everywhere else and couldn't find the answer, played around with it and finally figured it out. It's actually a pretty simple solution.
Instead of Inserting a column or copying and inserting a column, all you have to do is select the column cells that you want to extend, then at the bottom of the cursor where the plus sign is, click and drag to the right as many columns as needed.
The CF range extended to the last column without creating any extra conditions or messing up the original range.
JKPieterse
Nov 15, 2017Silver Contributor
If you first copy an entire row before inserting a new one (Insert copied row) I expect this won't happen. Otherwise, I feel your pain. The CF rules manager is one of the most unusable interfaces Excel has.
Charles Proefrock
Jan 05, 2018Copper Contributor
That doesn't work in Excel 2016. I'm wondering if there is a way to set the "Applies to" field to a named range vs. $A:$A.
- JKPieterseJan 07, 2018Silver ContributorNot that I know of, Excel manages that list and I expect inserting a row will override whatever range name you put there.
- Damien_RosarioJan 25, 2018Silver ContributorHi guys
Adding a name range should work allowing you to add or delete rows without affecting your formulas.
Just make sure that any formula refers to the name range you have specified.
Cheers
Damien- speedstyleJan 17, 2019Copper Contributor
This doesn't work - when a named range is referred to, it immediately evaluates it, so using a named range is equivalent to entering the definition of said range.
One thing I've found in my spreadsheet is that inserting a row only affects one conditional formatting entry (probably because this is the only one which uses a formula, one which refers to other surrounding cells). Nonetheless this is annoying as the 'Manage Rules' dialog is difficult enough to use (you can't even resize?!) without rules being spawned with every spreadsheet edit.