+ Reply to Thread
Results 1 to 4 of 4

Change Row & Cell Colours Depending Upon Certain Values

  1. #1
    Registered User
    Join Date
    07-12-2007
    Location
    Leeds, England
    MS-Off Ver
    Professional Edition 2010
    Posts
    12

    Change Row & Cell Colours Depending Upon Certain Values

    Hi,

    I have a spreadsheet with columns A to T in use. There needs to be scope for 100's of rows.

    I would like to know how to do the following, please:

    If there is a value (a date) in a row in column J, I would like to turn the relevant row green.

    I would also like column K to show the number of days that have passed since the date in column J (I have already done this with the following formula =TODAY()-J10). If this number (the number in column K) is more than 5, I want the cell to turn red. Finally, if there is a date in column N, I would like the cell in column K to turn back/stay green.

    Is this possible?

    Thanks
    Jared

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Change Row & Cell Colours Depending Upon Certain Values

    Potentially easy enough to accomplish with Conditional Formatting.

    If you could post a sample workbook with the expected cells manually highlighted to make sure we know exactly what you expect then your solution won't be far behind.

    BSB

  3. #3
    Registered User
    Join Date
    07-12-2007
    Location
    Leeds, England
    MS-Off Ver
    Professional Edition 2010
    Posts
    12

    Re: Change Row & Cell Colours Depending Upon Certain Values

    Hopefully I've managed to upload the attached example.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Change Row & Cell Colours Depending Upon Certain Values

    You can do this with two conditional formatting rules. First, select all of your entry rows and enter the following CF formula rule:

    =NOT(ISBLANK($J2))

    And select a green fill. Then, select all of your rows but only column K and enter the following CF formula rule:

    =AND(ISBLANK($N2),$K2>5)

    And select a red fill. Try those out and let me know if there are any issues.

+ 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. [SOLVED] Line chart with changing colours depending on values
    By Invicta084 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-16-2015, 10:33 AM
  2. [SOLVED] Marker colours change depending on results
    By BrianOfNazareth in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-01-2014, 07:53 AM
  3. Change cell value within a row depending on other cell values within same row
    By cameron213 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2013, 05:34 PM
  4. Replies: 3
    Last Post: 06-19-2012, 04:55 AM
  5. Replies: 5
    Last Post: 02-26-2009, 11:03 AM
  6. changing cell colours depending on cell content
    By jon@karhu in forum Excel General
    Replies: 6
    Last Post: 11-19-2008, 10:47 AM
  7. Replies: 3
    Last Post: 10-02-2008, 06:45 AM

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