+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : change cell colour when number of days have past for a given date

  1. #1
    Registered User
    Join Date
    11-29-2010
    Location
    Witney England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    4

    change cell colour when number of days have past for a given date

    Hello,

    i would like a cell containing a date to change colour once either 5, 10 or 30 days have passed;

    for example;

    Cell A1 30/11/10 5 days passed change to green
    Cell A2 30/11/1010 days passed turn to blue
    Cell A3 30/11/10 30 days passed turn to red.

    is there a way to change using any of the formulas or some other function, i have tried conditional formatting but this does not work and i'm at a loss. what i am expecting is as each day that passes the cell counts down the days before changing colour.

    i hope that makes sense.

    any help would be greatly apprceated.

    Thank you

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: change cell colour when number of days have past for a given date

    Conditional formatting is the way to go. The formulas would be:

    Condition1: Formula Is: =TODAY() - A1 >= 5
    Pattern: Green

    Condition2: Formula Is: =TODAY() - A1 >= 10
    Pattern: Blue

    Condition1: Formula Is: =TODAY() - A1 >= 30
    Pattern: Red
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-29-2010
    Location
    Witney England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    4

    Re: change cell colour when number of days have past for a given date

    Hi Jerry,

    Many thanks for responding.

    I'm clearly not grasping something as i can not get it to work.

    you referred to condition 1,2 & 3 - do i enter this as one formula in a cell and it will change colour once the set number of days have passed?

    or

    are they individual formulas that i need to enter in individual cells?

    do i use the conditional formatting on the Home Tab?

    i have tried inputting =TODAY() - A1 >= 5
    not sure where i make this change - Pattern: Green

    I keep getting a circular ref and not really sure what I’m doing wrong.

    please forgive my ignorance and the barrage of questions for what may be a simple problem. I confess to being an excel idiot - however i am trying to improve on this.

    Hope it all makes sense, once again many thanks for your help so far.

    Deano

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: change cell colour when number of days have past for a given date

    You need to read up on how to use Conditional Formatting. This isn't something that you put IN a cell like a regular formula, CF is something that is put ON the cell.

    In Excel 2003 I open the CF window by Format > Conditional Formatting. You'll have to find it in Excel 2007. Press F1 and check the help files on it.

  5. #5
    Registered User
    Join Date
    11-29-2010
    Location
    Witney England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    4

    Re: change cell colour when number of days have past for a given date

    Hi Jerry,

    many thanks for for you patients and advice.

    Deano

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: change cell colour when number of days have past for a given date

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  7. #7
    Registered User
    Join Date
    05-10-2012
    Location
    Sexsmith, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Excel 2007 : change cell colour when number of days have past for a given date

    Hello All,

    I really enjoy all the help I can get when it comes to excel. I am currently building a spreadsheet that will track shipments and need to have it do some conditional formatting by checking the current date and then the data in another cell(O3) for a "YES" and if Yes is not present in that cell then to change the color of that row to RED. But only if the date in cell "K3" is 2 days or more from today's date AND the "YES" is not in cell "O3" will it turn the row RED.

    Thank you for any help you can provide.

    Martin

+ 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