+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting Nested IF's

  1. #1
    Registered User
    Join Date
    08-24-2009
    Location
    Dallas
    MS-Off Ver
    Excel 2007
    Posts
    24

    Conditional Formatting Nested IF's

    I've got columns A and B. Both have pull down lists. I want to apply conditional formatting to the cells in column B based on the following: If A is not equal to 1 or 2, and if B contains data, the highlight B Red, otherwise, no color.

    The formula I have worked up is as follows, but it seems to be doing the opposite of what I want it to do.

    (OR(AND(B1>0,A1<>1),AND(B1>0,A1<>2)))
    Then highlight B Red.

    Thus, if B contains data and A is either 1 or 2, no highlight. If B contains data and A is 3, 4, 5, etc, highlight B Red.

    Any help would be greatly appreciated. Thanks.

  2. #2
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    Re: Conditional Formatting Nested IF's

    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional Formatting Nested IF's

    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    08-24-2009
    Location
    Dallas
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Conditional Formatting Nested IF's

    Quote Originally Posted by ChemistB View Post
    Please Login or Register  to view this content.
    That should work. Thanks Chemist!

+ 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