+ Reply to Thread
Results 1 to 12 of 12

Conditional Formatting - Color Exceptions

  1. #1
    Registered User
    Join Date
    07-27-2009
    Location
    Scranton, Pennsylvania
    MS-Off Ver
    Office 365
    Posts
    31

    Question Conditional Formatting - Color Exceptions

    When using conditional formatting, I have it set to the following:

    C2=60 (Reference Cell)
    C3=5 (Reference Cell)

    Conditional Format Settings
    If C3 >= C2/12 then pattern set to Green
    If C3 < C2/12 then pattern set to Red

    Here is the problem - when you have a value in C3, everything is fine, it's either green or red. If C3 is blank, it defaults to green because the conditional format is true.

    Question - Is there anyway to add something in there to have no color when C3 is not populated?
    Last edited by Falk781; 08-13-2009 at 10:19 AM.

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Conditional Formatting - Color Exceptions

    Cheap way:
    Make your first conditional format check to see if cell="" and set no format for this condition, your original formats would be two and three

    Neater way:
    Set your conditional format as formula is =and(not(isblank(c3)),c3">="C2/12)

  3. #3
    Registered User
    Join Date
    07-27-2009
    Location
    Scranton, Pennsylvania
    MS-Off Ver
    Office 365
    Posts
    31

    Re: Conditional Formatting - Color Exceptions

    When I set the Cf to "Formula" and put in your formula, it says that "my formula contains an error." If I use the "cheap way" it still doesn't seem to be working. See the attached picture for illustration.
    Attached Images Attached Images
    Last edited by Falk781; 08-11-2009 at 08:23 PM.

  4. #4
    Registered User
    Join Date
    07-27-2009
    Location
    Scranton, Pennsylvania
    MS-Off Ver
    Office 365
    Posts
    31

    Re: Conditional Formatting - Color Exceptions

    Ok, I got the ("") working to make it white... Setting it to no format doesn't seem to work. I had to change the pattern to white. I still can't get that formula to work. Any ideas?

    See the modified attachment.
    Attached Images Attached Images

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Conditional Formatting - Color Exceptions

    Hi,

    Try this one
    Attached Images Attached Images
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  6. #6
    Registered User
    Join Date
    07-27-2009
    Location
    Scranton, Pennsylvania
    MS-Off Ver
    Office 365
    Posts
    31

    Re: Conditional Formatting - Color Exceptions

    Thanks for replying to my problem. My CF works the way I set it up in the picture, the problem is, I can't get the proposed formula to work, or the "neat" way.

    in other words, this formula: =and(not(isblank(c3)),c3">="C2/12) doesn't work.

  7. #7
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Conditional Formatting - Color Exceptions

    hey, sorry, take the quotes out form around >= - that was a result of testing it in a different environment.

    CC

  8. #8
    Registered User
    Join Date
    07-27-2009
    Location
    Scranton, Pennsylvania
    MS-Off Ver
    Office 365
    Posts
    31

    Re: Conditional Formatting - Color Exceptions

    CC,

    Was worth a try and it fixed the error, but now the conditional formatting doesn't work at all. I suppose I should stick with the "Cheap Way", because it seems to work?

  9. #9
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Conditional Formatting - Color Exceptions

    Hi,

    Try this one then
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-27-2009
    Location
    Scranton, Pennsylvania
    MS-Off Ver
    Office 365
    Posts
    31

    Re: Conditional Formatting - Color Exceptions

    Looks like this one works. Thanks alot for your help.

    What is the and/not/isblank part telling it to do?

    and(not(isblank

  11. #11
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Conditional Formatting - Color Exceptions

    build it up from the middle function
    isblank('any cell') is true if 'any cell' is blank
    not('anything') is true if 'anything' is false, and false if 'anything' is true
    and('one thing', 'another thing') is true if both 'one thing' and 'another thing' are true and false otherwise

    CC

  12. #12
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Conditional Formatting - Color Exceptions

    Hi,

    =AND(NOT(ISBLANK(C3))),C3<=C2/12

    ISBLANK(C3) checks whether the cell is blank - returns TRUE or FALSE

    NOT changes FALSE to TRUE and visa versa

    AND checks whether NOT(ISBLANK(C3)) and C3<=C2/12 are TRUE or FALSE

+ 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