+ Reply to Thread
Results 1 to 5 of 5

advanced accumulative conditional formatting based on tick boxes

  1. #1
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Question advanced accumulative conditional formatting based on tick boxes

    I have attached a sheet explaining what I need as its easier to look at than describe.

    thanks.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: advanced accumulative conditional formatting based on tick boxes

    Use formula based conditional formatting off the linked cells to your check boxes, or even work the formula in to a cell and base off that.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: advanced accumulative conditional formatting based on tick boxes

    I've tried.

    I can normally do all that with ease. but what im having trouble with it telling the sheet WHAT cells to colour. because it needs to be relative to the previous colour bar.

    e.g I cant tell it to code certain cells in the conditions or code because the first cells it needs to colour depends on the previous LAST coloured cell

    what im trying to describe and failing to is..

    say tickbox one is ticked on 1/5/2014 its easy to get that box filled red.

    but if tickbox 2 is ticked on the 4/5/2014, how do I tell it to fill the boxes from 2-4 in green. AND make it intelligent enough to figure that out itself because tick box 1 could be ticked on any day

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: advanced accumulative conditional formatting based on tick boxes

    FORUM_D8.xlsmDoes this help? I would have some hidden rows that work out the logic and do the cond formatting off them, basically build off my formula and have a hidden "helper row" underneath to thin out what goes in the cond formatting formula.
    Last edited by nathansav; 05-14-2014 at 06:59 AM.

  5. #5
    Forum Contributor
    Join Date
    10-30-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2013
    Posts
    173

    Re: advanced accumulative conditional formatting based on tick boxes

    Just FYI for anyone interested, here is a solution that exploits the order of rendering the CF and thus eliminates the need for helper formulae.
    I only needed to add a little table to store the day of month value of the checked dates, next to the tick box TRUR/FALSE cells.
    Because the colours are sequential (left to right), you can arrange the CF so that the first format (RED) is the last rule and the last one (Amber) is the first... (turns out Bob Dylan was right after all)
    If you look in the CF of the attachment, you will see the rules in the following order...

    6. Amber =AND(R16C3<>"",R4C<=R16C3,R4C>R15C3)
    5. Pink? =AND(R15C3<>"",R4C<=R15C3,R4C>R14C3)
    4. Yellow =AND(R14C3<>"",R4C<=R14C3,R4C>R13C3)
    3. Blue =AND(R13C3<>"",R4C<=R13C3,R4C>R12C3)
    2. GREEN =AND(R12C3<>"",R4C<=R12C3,R4C>R11C3)
    1. RED =AND(R11C3<>"",R4C<=R11C3)

    This takes care of the rendering and gives the desired effect without having to do any other calcs.

    The attachment has a switch driven from cell A1 to drop it into test mode and just loads test dates when the box is checked.
    Just release it to Run mode from the drop down in A1 to activate the original functions.
    Attached Files Attached Files
    Last edited by coolblue; 05-19-2014 at 03:45 AM.

+ 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. Excel VBA to generate check boxes and restrict user to tick on the 3 boxes in a row
    By rhodalynn.rona in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-06-2012, 05:55 AM
  2. Excel 2007 : one tick box selects multiple tick boxes
    By brentroberts in forum Excel General
    Replies: 2
    Last Post: 12-31-2011, 09:29 PM
  3. advanced conditional formatting based on text value list
    By pretzelz in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-11-2011, 02:06 PM
  4. Macro to paste value, based on Tick-Boxes, if adjacent cell is non-blank
    By adtc in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-14-2011, 10:22 AM
  5. Replies: 2
    Last Post: 07-21-2006, 10:05 AM

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