+ Reply to Thread
Results 1 to 9 of 9

How to have a cell highlight if less than another cell

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    NOLA
    MS-Off Ver
    Excel 2011
    Posts
    4

    How to have a cell highlight if less than another cell

    Hello, i am new to this forum. I am trying to have a cell highlight if the cell value is less than the cell value of another column in the same row.

    ie;
    A B C D
    1 50 60 70 80
    2 80 70 60 50
    3 10 20 30 40
    4 40 30 20 10


    I want the cells in Column D to be highlighted if tehy are less than the cells of the same row in column B.
    Cells D2, and D4 should be highlighted.

    I know how to have the cells highlight if they are less than a number i select, but i can not figure out how to have the cells highlight if less than another cell.

    Thanks

    RZ

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to have a cell highlight if less than another cell

    Hi and welcome to the forum

    Highlight your range(D1:D100?)

    In Conditional Formatting rules, put this formula.

    =$b1>$d1
    >Choose your color>>OK.

    Is this, works for you?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    06-11-2012
    Location
    NOLA
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: How to have a cell highlight if less than another cell

    Thanks for teh reply Fotis, but it didnt work for me.
    I tried exactly what you wrote, using one of the rows as the number, and it only highlighted some cells, and there does not seem to be a meathod to which ones it highlighted. logically i would think that if i typed in =$b>$d, it would generalize the formatting to each individual cell value in each column. but that didn't work either. any more suggestions?

    thanks

    RZ

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to have a cell highlight if less than another cell

    Why? Take a look, pls.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-11-2012
    Location
    NOLA
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: How to have a cell highlight if less than another cell

    wow, worked that time. i didnt have the "stop if true" checked. i guess that did it, thanks a lot

    RZ

  6. #6
    Registered User
    Join Date
    06-11-2012
    Location
    NOLA
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: How to have a cell highlight if less than another cell

    OK Fotis, thanks for your help yesterday, now what about if i want to have the cells highlight if they are equal to another cell. i tried doing it along the same lines as what we did yesterday, but it didnt work. can you help again?

    see attached image.

    thanks
    RZ
    Attached Images Attached Images

  7. #7
    Registered User
    Join Date
    06-11-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    86

    Thumbs up Re: How to have a cell highlight if less than another cell

    Hi


    conditional formating.JPG

    you should put your formula in the dialog box show in this picture.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to have a cell highlight if less than another cell

    ...And if you can not handle this that Md Aejaz, suggested, pls, upload a small, sample workbook..

  9. #9
    Registered User
    Join Date
    05-05-2014
    Location
    Thanjavur
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: How to have a cell highlight if less than another cell

    Quote Originally Posted by Fotis1991 View Post
    Why? Take a look, pls.
    A B C
    1. 67 129 1
    2. 49 107 2
    3. 46 84 1
    4. 42 77 1

    I want to compare (A1>A2),if true then highlight the A2 cell with green color,else highlight with red color. Similarly,compare (B1,B2)and(c1,c2). After finishing first two rows, then move to another rows like (a3>a4),(b3>b4), etc..

    Kindly do the needful.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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