+ Reply to Thread
Results 1 to 11 of 11

Turn off Conditional Formatting

  1. #1
    Registered User
    Join Date
    12-06-2009
    Location
    Monroe, Louisiana
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    31

    Turn off Conditional Formatting

    I have a color change alert in a cell using Conditional Formatting. Is there a formula that will turn off the alert in that cell once a value, (any value), is entered into the cell?

    Thanks!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Turn off Conditional Formatting

    whats the existing conditional format?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    12-06-2009
    Location
    Monroe, Louisiana
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    31

    Re: Turn off Conditional Formatting

    The formula I currently have in Conditional Format is =IF(Q41<A9,A9,""). In
    Q41 I have a set date. In A9 is the formula =TODAY(). As you can see, when Today is less than the set date the cell is formatted to turn red.

    In the cell that I have this Conditional Format, I will enter a value when it is necessary. Once a value is entered, I would like the cell color to go back to default. I know the simple solution would be to remove the conditional format once the value is entered, but since I am dealing with several hundred cells, I would like this to be automatic.

    Any help is greatly appreciated.

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Turn off Conditional Formatting

    Hi MattVarnell,

    In Excel 2003, conditional formatting gives you three levels. It will apply itself to the first true condition it finds, then ignore the remaining levels.

    Assuming the cell you have the conditional formatting applied to is X99; move the current conditional formatting to "Condition 2". Then in "Condition 1" set the formula to =Z99<>"" and set the format to your default setting.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Turn off Conditional Formatting

    I would suggest you merge your existing rule with CXL advised approach, ie use a single cell to denote as to whether or not CF is "active" - say Z99 holds 1/0 where 1 is "on" and 0 is "off" your CF becomes:

    =Z99*(Q41<A9)

    ie no real need to create additional rules... in XL terms only 0 equates to FALSE and in CF terms only TRUE output results in CF being applied
    - the above will therefore multiple your on/off switch (1/0) with a Boolean (TRUE/FALSE) the outputs of which will be either 1 (TRUE) or 0 (FALSE)

    =1*(TRUE) --> 1
    =1*(FALSE) --> 0
    =0*(TRUE) --> 0
    =0*(FALSE) --> 0

    Thus only the first combination will result in CF being applied - ie both "on" and date < today()
    Last edited by DonkeyOte; 12-14-2009 at 04:05 AM. Reason: inconsistent ref. in relation to CXL's prior post - modified to Z99

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Turn off Conditional Formatting

    why not just
    =Q41<A9
    then as long as q41 has a date >=today or text it will be default

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Turn off Conditional Formatting

    Good point Martin - serves me right for reading responses and not questions...

    MattVarnell, ignore my post altogether - apologies for confusion caused.

  8. #8
    Registered User
    Join Date
    12-06-2009
    Location
    Monroe, Louisiana
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    31

    Re: Turn off Conditional Formatting

    Thanks for your help! However, I feel that I have not properly explained my problem. Please see the attached example sheet. Hopefully, that should shed some light on what I am looking for.
    Attached Files Attached Files

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Turn off Conditional Formatting

    we are back to what connexionlost suggested
    on your example
    condition 1 is (formula is option)
    =B9<>"" choose no fill
    condition 2 is (formula is option)
    =G7<B3 choose red

    you dont use the =IF(G7<B3,B3,"") in cf as it ony tests true/ false

  10. #10
    Registered User
    Join Date
    10-12-2009
    Location
    Falkirk, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Turn off Conditional Formatting

    I'm not much of logician but could you maybe nest if statements to make the cell require two conditions (the value comparison and the empty status)before it turns red.
    Or somehow otherwise If(AND)? use both the value comparison and the empty status to make it red? (Which is I think what the other guys are suggesting)


    You sound like your way ahead of me on the excel front so would know why this aint possible sorry if I'm just being dumb.
    Last edited by opsinmena09; 12-14-2009 at 11:30 AM.

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Turn off Conditional Formatting

    fair point ,same difference but saves a condition
    =AND(B9="",G7<B3)

+ 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