+ Reply to Thread
Results 1 to 4 of 4

Colour a cell based on the colour of a range of other cells

  1. #1
    Registered User
    Join Date
    12-03-2019
    Location
    Ashford, Kent
    MS-Off Ver
    Office365
    Posts
    3

    Colour a cell based on the colour of a range of other cells

    Hi all,

    I have created a spreadsheet to track the insurance and qualifications of our sub-contractors.

    I have entered a table and in the first information column (column b) I have a drop down menu that you can select 'obtained' 'not obtained' or 'NA', these cells will highlight in green if obtained, red if not obtained and stay white/clear if NA or blank.

    In the adjacent column (column c), I would enter the expiry date of those documents in column b and have added a formula that highlights the cell green if the expiry date is 1 month or more from todays date, highlight in amber if the date is equal to or within 1 month of todays date and highlight in red if the expiry date has passed.

    I have another cell that I would like to highlight in green and say 'approved' if all cells in columns b and c are either white, amber or green; indicating that their documents are up-to-date. Equally, I would like the cell to highlight red stating 'not approved' if any of the cells in columns b and c are highlighted red, indicating that their documents have expired and need updated before they can be approved again. Is this possible?

    I am happy to send over additional information if it is required.

    Thank you in advance.

  2. #2
    Registered User
    Join Date
    12-03-2019
    Location
    Ashford, Kent
    MS-Off Ver
    Office365
    Posts
    3

    Re: Colour a cell based on the colour of a range of other cells

    I have attempted to add an attachment of an example worksheet. I cannot see anywhere that it is attached once I close the 'manage attachment page'
    Attached Files Attached Files

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Colour a cell based on the colour of a range of other cells

    In Cell J12 use

    =IF(OR(COUNTIF(D7:D37,"No"),COUNTIF(E7:E32,"<"&NOW())),"Not approved","Approved")

    In conditional formatting for Cell J12 use
    Cell value -- equals -- Not approved ----- Format red
    Cell value -- equals -- Approved ----- Format green
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    12-03-2019
    Location
    Ashford, Kent
    MS-Off Ver
    Office365
    Posts
    3

    Re: Colour a cell based on the colour of a range of other cells

    Thank you so much.

    I have inputted so many formulas over the last couple of days I couldn't even think straight haha.

+ 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. Colour cells based on colour of another cell
    By chrisellis250 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-12-2019, 12:54 PM
  2. Replies: 6
    Last Post: 04-11-2016, 09:48 AM
  3. [SOLVED] Search cells based on student name, cell background colour and return a tally for colour
    By drof_06 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-26-2016, 04:31 AM
  4. [SOLVED] Total a range of Cells based on their Cell colour
    By suedavies in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-08-2015, 10:34 AM
  5. Change colour of cells based on another cell's colour (Not value)
    By LTrain89 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2013, 08:44 PM
  6. Cell Colour based on text in Range of cells
    By viewmaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2006, 11:53 PM
  7. Cell Colour based on text in Range of cells
    By viewmaster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2006, 11:45 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