+ Reply to Thread
Results 1 to 11 of 11

Turn off Conditional Formatting

Hybrid View

  1. #1
    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

  2. #2
    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.

  3. #3
    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.

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

    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

+ 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