+ Reply to Thread
Results 1 to 13 of 13

Conditional formatting splits when inserting new rows

  1. #1
    Registered User
    Join Date
    03-17-2011
    Location
    Atlanta
    MS-Off Ver
    Excel for Office 365
    Posts
    38

    Conditional formatting splits when inserting new rows

    I have a timeline I use to keep track of my projects that has A LOT of conditional formatting to help keep me on track. Everytime I insert a row, no matter how I do it, it splits the conditional formatting. For example, if I am applying conditional formatting to this range $A$5:$BH$26 and then I insert a row, I end up with $A$5:$BH$5,$A$12:$BH$26 (if I have inserted row 11).

    Does anyone know how to fix this? I have tried named ranges and relative references. I've done some looking around online, but no one seems to have a solution, or have a solution that works. I am using Excel 2010.

    Thanks!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,374

    Re: Conditional formatting splits when inserting new rows

    I don't know a way to fix it, and it can become a huge problem over time.

    However, you could clear and re-apply all the conditional formatting when the workbook is opened. At least then you get a clean CF for the start of the session and it won't build up.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-17-2011
    Location
    Atlanta
    MS-Off Ver
    Excel for Office 365
    Posts
    38

    Re: Conditional formatting splits when inserting new rows

    Thanks TMS -- what would be the best way to go about doing this? Doing it all "by hand" is out of the question unfortunately as there are probably at least 50 rules. Do you know of some code that would help achieve this and I could customize it for my needs?

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,290

    Re: Conditional formatting splits when inserting new rows

    Copy a row
    Insert this row
    Now you have copied the CF in the new row.

    Adjust the values in this row
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Conditional formatting splits when inserting new rows

    @ popipop just a word of advice - be careful when copying CF in 2007 (not sure if the fixed it in later versions), it often doubles - and triples-up on the rules you have created
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,374

    Re: Conditional formatting splits when inserting new rows

    See this link ...

    Re: Fix conditional formatting to never change


    Regards, TMS

  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,290

    Re: Conditional formatting splits when inserting new rows

    @FDibbins

    Thanks for advice

    In excel 2007 you can easy adjust the range for CF.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,374

    Re: Conditional formatting splits when inserting new rows

    My experience was that copying and deleting rows with CF in 2007 split the CF ranges.

    In the specific example, the CF became unusable and the CF Rules Manager eventually could not cope. I suspect the OP is experiencing something similar.


    Regards, TMS

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Conditional formatting splits when inserting new rows

    That was my take as well, Trevor

    I was just pointing out to pop that sometimes 2007 really messes up CF when you copy it (copy the CF cell, that is)

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,374

    Re: Conditional formatting splits when inserting new rows

    I was just pointing out to pop that sometimes 2007 really messes up CF

    Big style

  11. #11
    Registered User
    Join Date
    08-27-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Conditional formatting splits when inserting new rows

    Physicsgal, my approach has been to apply CF to an entire column and ALWAYS Paste Special > Values when copying in new data. (This became a little easier with 2010, since they added a Paste Values option to the context menu when you right-click.) I have found that if I paste values to an unused portion of the worksheet, then Cut entire rows, and Insert Cut Cells into a region where they can be considered in my formulas, it maintains the formatting and the formula ranges automatically adjust. I don't know if your data and CF are too complex for this approach to work, but it has been a decent workaround for my situation.

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,374

    Re: Conditional formatting splits when inserting new rows

    @physicsgal: how you doing with this?

    Regards, TMS

  13. #13
    Registered User
    Join Date
    03-17-2011
    Location
    Atlanta
    MS-Off Ver
    Excel for Office 365
    Posts
    38

    Re: Conditional formatting splits when inserting new rows

    Hey sorry-- I've just logged back in and I thought I had the settings applied that would email me with new posts!

    Thanks for all the advice, and I will be working on this next week as I have had some other projects take priority.

    I will post again with comments/results/questions. Thanks for following-up TMS.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Inserting new rows splits conditional format
    By wotaj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-07-2017, 11:26 PM
  2. Replies: 2
    Last Post: 02-07-2012, 05:33 AM
  3. Inserting a row with conditional formatting
    By thetrickster in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2011, 07:55 PM
  4. Conditional Formatting when inserting a row
    By zahoulik in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2006, 11:10 AM
  5. Conditional Formatting Reference / Inserting Rows
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2005, 10:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1