+ Reply to Thread
Results 1 to 2 of 2

Conditional Formatting .............

  1. #1
    Registered User
    Join Date
    06-17-2008
    Location
    London
    Posts
    11

    Conditional Formatting .............

    I have the following totals in cells :

    Cell A1 = 100
    Cell A2 = 200
    Cell A3 = 300

    I need to set up 2 conditions for the above data :
    1. If the values in each of the cells is the same value what formula do I enter into condition 1 ....... if they are then all 3 cells will show as having a "green" background ?

    2. If all 3 cells are different or one of them is different from the other 2, what formula would I use in condition 2 to show the background as "red" ?

    With the example values at the start of this message all 3 cells would have a "red" background.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Select the range and go to Format|Conditional Formatting...

    Select Formula Is from 1st drop down and enter formula: =COUNTIF($A$1:$A$3,$A$1)=ROWS($A$1:$A$3)

    where A1:A3 is your selected range and A1 is top most cell in the range...

    click Format and choose the Green background...

    Click add and select Formula Is and enter formula =COUNTIF($A$1:$A$3,$A$1)<>ROWS($A$1:$A$3)

    Click Format and choose Red background...

    Click Ok.. click Ok again to finish
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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