+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting based on contents in another cell

  1. #1
    Registered User
    Join Date
    03-21-2012
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Conditional Formatting based on contents in another cell

    Hello, I need to change the color of a cell depending on the contents of another. So for instance, if I have date in cell J2 and K2 is empty, J2 needs to be red, if there is a date in K2, J2 needs to be green. Any suggestions would be greatly appreciated!

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Conditional Formatting based on contents in another cell

    you can use a formula for you conditional formating to reference another cell, something like this:

    for yoru Red:
    =$J2=""

    for your Green:
    =$J2<>""
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    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: Conditional Formatting based on contents in another cell

    Ηi and welcome to the forum.

    In Conditional format rules

    1)In J2>> =AND(J2<>"",K2="") >>>Red color

    2)In j2>> =AND(J2<>"",K2<>"")>>Green color.
    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.

  4. #4
    Registered User
    Join Date
    03-21-2012
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Conditional Formatting based on contents in another cell

    Thank you! This worked perfectly!

+ 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