+ Reply to Thread
Results 1 to 4 of 4

conditional formatting for 3 columns (?)

  1. #1
    Registered User
    Join Date
    01-05-2010
    Location
    San Diego, California
    MS-Off Ver
    Excel 2003
    Posts
    4

    conditional formatting for 3 columns (?)

    I'm not sure if this achieved using conditional formatting but it's my only guess on how it might be done.

    I want the relationship between my values in column A and column B to give me a result in column C.

    I have %'s in column A and B and if my %'s are higher in column B than the corresponding row in column A I want column C to give me a "YES" response and be highlighted. If B<=A I want the corresponding row in column C to say "NO".

    How would I achieve this? Thanks.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: conditional formatting for 3 columns (?)

    in c1
    =if(b1>a1,"yes","no")
    then cf c1 as
    formula is
    =b1<=a1
    pick a colour
    "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

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: conditional formatting for 3 columns (?)

    To get "Yes or "No" Values in the cells you need a formula, e.g. in C2 copied down

    =IF(B2>A2,"Yes","No")

    of course that will give "No" if the two %s are equal. You could change the formula to all signify "Equal" i.e.

    =IF(B2>A2,"Yes",IF(A2<B2,"No","Equal"))

  4. #4
    Registered User
    Join Date
    01-05-2010
    Location
    San Diego, California
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: conditional formatting for 3 columns (?)

    Thanks that's exactly what I needed!

+ 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