+ Reply to Thread
Results 1 to 12 of 12

Changing a cell that has a colour formatted to another colour after a period of time

  1. #1
    Registered User
    Join Date
    01-16-2018
    Location
    london
    MS-Off Ver
    2002
    Posts
    8

    Changing a cell that has a colour formatted to another colour after a period of time

    Hi, and thanks for looking at my post,

    here is what I wish to do with a cell, I have a cell(s) that has been formatted to turn green once a corresponding cell has the input "Y" I would like to turn this green cell black once 14 days has passed, so in plain English I want a formula that say if cell "x" is green and 14 days has passed since it was green then it turns black. I need this identity what data I need to delete after 14 weeks.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Changing a cell that has a colour formatted to another colour after a period of time

    You would need to add a column in your sheet that records the date the "Y" was input.

    eg

    Column D holds the Y's, then add an Onchange event to check Column D and if thats been updated then add the date in column E

    Please Login or Register  to view this content.
    Then just add another Conditional Formatting to look at the dates in column E and format as necessary.
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    01-16-2018
    Location
    london
    MS-Off Ver
    2002
    Posts
    8

    Re: Changing a cell that has a colour formatted to another colour after a period of time

    Hmmm just tried this...not working thanks for your help

  4. #4
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Changing a cell that has a colour formatted to another colour after a period of time

    Whats it doing? did you change the column references to match yours? is it giving an error message or doing something strange?

    You'll need to give a little more info, ideally uploading your workbook or at the least letting me know where the Y's are in the sheet and where you're now storing the dates.

  5. #5
    Registered User
    Join Date
    01-16-2018
    Location
    london
    MS-Off Ver
    2002
    Posts
    8

    Re: Changing a cell that has a colour formatted to another colour after a period of time

    I am at home and was just trying the code to see if works but to avail...the error I am getting is " error End If Block If"

  6. #6
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Changing a cell that has a colour formatted to another colour after a period of time

    heres an example sheet
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-16-2018
    Location
    london
    MS-Off Ver
    2002
    Posts
    8

    Re: Changing a cell that has a colour formatted to another colour after a period of time

    so sorry for this but i am running a very old version of excel..can you resend as a normal excel file extension

    many thanks

  8. #8
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Changing a cell that has a colour formatted to another colour after a period of time

    ive saved it as an Excel 97-2003 version now
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-16-2018
    Location
    london
    MS-Off Ver
    2002
    Posts
    8

    Re: Changing a cell that has a colour formatted to another colour after a period of time

    ok got it...works perfectly...I'll now do a macro to add the date automatically...

    Thank you

  10. #10
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Changing a cell that has a colour formatted to another colour after a period of time

    The sheet already adds the date when you enter a Y in column D?

  11. #11
    Registered User
    Join Date
    01-16-2018
    Location
    london
    MS-Off Ver
    2002
    Posts
    8

    Re: Changing a cell that has a colour formatted to another colour after a period of time

    oh...no it does not...I have changed the security settings to low

  12. #12
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Changing a cell that has a colour formatted to another colour after a period of time

    if the security settings are set properly then it will update column E with the date whenever you enter anything in column D (if you have other things to enter in that column and only want it triggering on a Y then add another IF statement inside the Change event to check its "Y")

+ 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: 06-27-2016, 01:11 AM
  2. Changing chart colour to reflect colour of cell
    By hillwalker11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2016, 03:12 AM
  3. Highlight a row one colour and then another after a period of time.
    By stuj77 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-08-2014, 11:08 PM
  4. Changing a cell colour after a set time
    By Spyke in forum Excel General
    Replies: 1
    Last Post: 12-07-2011, 05:57 AM
  5. Alternating a shape's fill colour for a fixed period of time
    By deadlyduck in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2010, 05:16 AM
  6. Changing a cell's colour basing on other cells' colour
    By rhua5436 in forum Excel General
    Replies: 11
    Last Post: 09-23-2010, 05:49 AM
  7. Change colour once a certain time period passed
    By Dianne in forum Excel General
    Replies: 1
    Last Post: 01-10-2006, 02:40 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