+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting with multiple criteria

  1. #1
    Registered User
    Join Date
    03-26-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    9

    Conditional formatting with multiple criteria

    Hi gurus,

    Just trying to setup several conditional formatting to achieve the below:

    Column A & Column B are targeted range.

    Ultimately what I want is:

    If both columns = 0 or Blank, or A=B, then no fill
    If Column A = 0 or "", and Column B <> 0 or "", then green
    If Column B = 0 or "", and Column A <> 0 or "", then red
    If Column A <> 0 or "", and Column B <>0 or "", and Column A <> Column B, then orange

    I put through the below formula:

    =OR(AND(A1=0,B1=0),AND(ISBLANK(A1),ISBLANK(B1)),A1=B1) -> No fill
    =AND(OR(A2=0,ISBLANK(A2)),OR(B2<>0,ISBLANK(B2)=FALSE)) -> Green
    =AND(OR(B3=0,ISBLANK(B3)),OR(A3<>0,ISBLANK(A3)=FALSE)) -> Red
    =AND(OR(A4<>0,ISBLANK(A4)=FALSE),OR(B4<>0,ISBLANK(B4)=FALSE),A4<>B4) -> Orange

    My rules stopped at Green and don't perform last 2 conditions.

    What have I done wrong here?

    Thanks.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional formatting with multiple criteria

    try
    =OR(AND($A1=0,$B1=0),AND(ISBLANK($A1),ISBLANK($B1)),$A1=$B1) - no color
    =AND(OR($A1=0,ISBLANK($A1)),OR($B1<>0,ISBLANK($B1)=FALSE)) - green
    =AND(OR($B1=0,ISBLANK($B1)),OR($A1<>0,ISBLANK($A1)=FALSE)) - red
    =AND(OR($A1<>0,ISBLANK($A1)=FALSE),OR($B1<>0,ISBLANK($B1)=FALSE),$A1<>$B1) - orange

    order of rules with no color checked like above

  3. #3
    Registered User
    Join Date
    03-26-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    9

    Re: Conditional formatting with multiple criteria

    Quote Originally Posted by sandy666 View Post
    try
    =OR(AND($A1=0,$B1=0),AND(ISBLANK($A1),ISBLANK($B1)),$A1=$B1) - no color
    =AND(OR($A1=0,ISBLANK($A1)),OR($B1<>0,ISBLANK($B1)=FALSE)) - green
    =AND(OR($B1=0,ISBLANK($B1)),OR($A1<>0,ISBLANK($A1)=FALSE)) - red
    =AND(OR($A1<>0,ISBLANK($A1)=FALSE),OR($B1<>0,ISBLANK($B1)=FALSE),$A1<>$B1) - orange

    order of rules with no color checked like above
    It workeddddd!!! Thank you so much

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Conditional formatting with multiple criteria

    You are welcome

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Conditional Formatting - Multiple Criteria
    By zobrien in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 05-24-2017, 07:52 AM
  2. Conditional Formatting with Multiple Criteria
    By Excel_Novice-Tim in forum Excel General
    Replies: 4
    Last Post: 04-12-2016, 03:55 PM
  3. [SOLVED] Conditional Formatting over multiple cells with multiple criteria validator
    By effendrew in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-31-2015, 05:05 PM
  4. [SOLVED] Conditional Formatting with Multiple Criteria
    By swarnbr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2014, 03:34 PM
  5. [SOLVED] Conditional Formatting - Multiple Criteria
    By Spencer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2014, 10:36 PM
  6. Replies: 5
    Last Post: 12-28-2012, 02:06 PM
  7. Conditional formatting with Multiple Criteria
    By kgibson20 in forum Excel General
    Replies: 5
    Last Post: 05-21-2012, 02:00 PM

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