+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting based on another cell's contents

  1. #1
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Conditional Formatting based on another cell's contents

    I've attached a couple of photos...

    I want the cells in C7:J7 to highlight IF one of the other cells has an X in it.

    So if C7 has "X", I want D7:J7 to highlight
    If D7 has "X", I want C7, and E7:J7 to highlight

    I tried to create multiple single rules but it doesn't seem to be working. Is there a simple way to do this?

    Conditional Formatting.JPG
    Conditional Formatting2.JPG

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional Formatting based on another cell's contents

    Do you want a row to highlight if there are more than one "x" such as in row 2 of your example?

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional Formatting based on another cell's contents

    Highlight C2:J13 > Conditional Formatting > New Rule > Use a formula

    =AND(C2<>"x",COUNTIF($C2:$J2,"x"))

    Format > Fill: Color of your choice > OK > OK

    If you only want to highlight rows with exactly one "x", adjust the formula to this:
    =AND(C2<>"x",COUNTIF($C2:$J2,"x")=1)

  4. #4
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Re: Conditional Formatting based on another cell's contents

    Quote Originally Posted by 63falcondude View Post
    Do you want a row to highlight if there are more than one "x" such as in row 2 of your example?
    No...this row is a bit different...only 1 cell in that row can be "X"'d so as soon as I "X" it, I want the rest to highlight so I don't mark the rest...

  5. #5
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Re: Conditional Formatting based on another cell's contents

    Quote Originally Posted by 63falcondude View Post
    Highlight C2:J13 > Conditional Formatting > New Rule > Use a formula

    =AND(C2<>"x",COUNTIF($C2:$J2,"x"))

    Format > Fill: Color of your choice > OK > OK

    If you only want to highlight rows with exactly one "x", adjust the formula to this:
    =AND(C2<>"x",COUNTIF($C2:$J2,"x")=1)

    Perfect thank you!!

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional Formatting based on another cell's contents

    You're welcome. Thanks for the rep!

    If that solved your question, please mark this thread as SOLVED.

+ 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. Replies: 7
    Last Post: 08-29-2016, 06:52 PM
  2. Conditional formatting based on contents of another cell
    By Kevska in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-29-2015, 09:54 PM
  3. Replies: 1
    Last Post: 05-08-2015, 09:46 AM
  4. Conditional Formatting based on cell contents?
    By Cremorneguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-09-2015, 06:29 AM
  5. Replies: 3
    Last Post: 12-14-2013, 02:52 PM
  6. [SOLVED] Conditional Formatting based on contents in another cell
    By flisters in forum Excel General
    Replies: 3
    Last Post: 03-22-2012, 07:04 AM
  7. Replies: 6
    Last Post: 05-16-2008, 06:28 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