+ Reply to Thread
Results 1 to 2 of 2

Conditional formatting based on another cells value

  1. #1
    Registered User
    Join Date
    11-20-2009
    Location
    Cardiff
    MS-Off Ver
    Excel 2010
    Posts
    25

    Conditional formatting based on another cells value

    Hi All,

    Thank you for any help.

    I am trying to set up a conditional format for a column of cells ("G3:G400")

    These are the conditions for the cells.
    If the cell is empty then no colour in the cell
    If this cell's value does not equal the other cell's value and is not in the specified range then turn the cell red
    If this cell's value does equal the other cell's value but is not in the specified range turn the cell red
    If this cell's value does equal the other cell value and is in the correct specified range turn the cell green


    Specified Range is cells ("M3:N3") of each row all the way down to row 400

    I am stumped. I think I should be using case statements, but I can't figure out the syntax for the case. I am thinking offsets, but again I'm stumped.

    Thanks
    Last edited by Mistweaver; 08-29-2012 at 08:59 PM. Reason: typo

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Conditional formatting based on another cells value

    Hi Mistweaver,

    Maybe the attached WorkBook could be of some help.

    Please also see the "Please consider note at the bottom of this Post.
    Attached Files Attached Files
    Last edited by Winon; 08-25-2012 at 12:35 AM. Reason: Corrected some formulas
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    11-20-2009
    Location
    Cardiff
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Conditional formatting based on another cells value

    Thanks very much for the help.

    It stirred the juices in me and I was able to come up with the solution. I added a column which check the range and returns a 1 or 0 if the condition is met and then added this to the conditional format formula.

    I used this for the conditional format green condition

    Please Login or Register  to view this content.
    And this for the red condition

    Please Login or Register  to view this content.
    Rep added, thanks

+ 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