+ Reply to Thread
Results 1 to 10 of 10

Conditional Formatting changing order when deleting a column

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    27

    Conditional Formatting changing order when deleting a column

    Hi, I have searched and found a couple of things relating to this but nothing I can get to work.

    I have a spreadsheet containing conditional formatting:

    Rules i,ii,iii,iv and v apply to:
    Please Login or Register  to view this content.
    Rule vi applies to:
    Please Login or Register  to view this content.
    (and this rule is at the bottom of the order list)

    When I delete a column (for example 'F') rule vi moves to the top of the order list and the other 5 rules split up and apply to:
    Please Login or Register  to view this content.
    and then
    Please Login or Register  to view this content.
    The rules "splitting up" is not a major concern as they still work but the order change is a big issue. While I could fix it manually each time, I am distributing the spreadsheet to others and so I need it to just work when they delete a column.

    Any ideas?
    Thanks,
    Kris

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional Formatting changing order when deleting a column

    The first thing I would try is make sure the 'stop if true' check boxes are ticked when the rules are in proper order, it should make them lock in order (sort of like a nested if - ' if this, do first, else if second...')

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    06-04-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    27

    Re: Conditional Formatting changing order when deleting a column

    Hi, thanks for the suggestion.
    However, it did not have any positive effect

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional Formatting changing order when deleting a column

    could you upload a sample showing this effect, iI haven't been able to re-create it ..

    see signature for uploading file

  5. #5
    Registered User
    Join Date
    06-04-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    27

    Re: Conditional Formatting changing order when deleting a column

    Here you go
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-04-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    27

    Re: Conditional Formatting changing order when deleting a column

    I've tested it in Excel 2012 and the same thing happens.

  7. #7
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional Formatting changing order when deleting a column

    Yes, still working on it, may have a work around for you, but it is definitely odd behavior...sorry about not replying earlier, but have been having great difficulty logging in

  8. #8
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional Formatting changing order when deleting a column

    Not sure why it wants to make that particular rule jump up to the top, but here is the work around I managed to come up with, it works on your sample, and i see no reason why it shouldn't work for your real data (hopefully )
    Here is what I managed to make work:
    First, remove the rule vi (the one for highlighting odd rows)
    Second, insert a new column A, then in A4, enter this formula =IF(ISODD(ROW()),1,0) drag down as far as needed..
    Third, select column A, apply filter, uncheck all, then check 1, this will show the odd rows
    -Select the rows and columns that you want the fill in
    -select Format (NOT Conditional Formatting, just the regular format)-> Fill select fill color, then ok
    Fourth, Select the filter drop down in Column A and check All again
    Fifth, remove the filters (select filter from the sort and filter ribbon item again, this should remove all the filter drop downs)
    Finally, Delete Column A

    this should apply your base odd row formatting, the conditional formats will be applied as they come true, and the deletion(or insertion) of columns shouldn't affect them anymore..

    Hope this helps

    PS- if you need any clarification of the steps, just ask here again - Dred

    Edit-
    The only thing I can come up with WHY the CF keeps jumping on you is that the first 5 rules only apply when you reach a certain column, before that, it is the FIRST (only?) rule, so maybe when you delete the column, Excel is Trying to "help" you..
    Last edited by dredwolf; 02-13-2013 at 02:27 PM.

  9. #9
    Registered User
    Join Date
    06-04-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    27

    Re: Conditional Formatting changing order when deleting a column

    Thanks dredwolf! Don't know why I didn't think of doing it without conditional formatting..
    Followed the steps and it was done in no time

  10. #10
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional Formatting changing order when deleting a column

    Perfect!
    I was n't sure I made the steps clear enough, so I'm pleased to hear it worked well for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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