+ Reply to Thread
Results 1 to 6 of 6

Conditional format for overdue date

  1. #1
    Registered User
    Join Date
    09-26-2011
    Location
    Lansing, MI
    MS-Off Ver
    Excel 2003
    Posts
    4

    Conditional format for overdue date

    Hello,

    I have tried to firgure this out by reading other threads but cannot seem to find a formula to apply to my spreadsheet. Long story short, I am trying to create a spreadsheet to determine if a medical or dental appointment for a child is over due. Essential I would like the overdue date to be highlighted in red.

    So for example, I have the "last medical date" in column "I". Each child is supposed to have a medical every year. In column "L" I have put a formula that inputs the date exactly a year from the "last medical date". I need for the date in column "L" to be highlighted if it is past a year from the date in column "I". I guess it would be helpful too, if I can create another condition that changes the color for dates at 9 months??????

    Oh, I am using Excel 2010....

    Please help!
    Last edited by monstur1; 09-30-2011 at 12:14 PM. Reason: additional info.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional format for overdue date

    Quote Originally Posted by monstur1 View Post
    I need for the date in column "L" to be highlighted if it is past a year from the date in column "I".
    I assumed that you meant, "I need for the date in column "L" to be highlighted if today's date is past a year from the date in column "I". "

    Here is an example set up using conditional formatting in Excel 2007 but it should translate to 2010. Let me know if you need an explanation. If it is more than a year since the last medical date, then the date in L is red. If it is less than a year but more than 9 months, it's yellow.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    09-26-2011
    Location
    Lansing, MI
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Conditional format for overdue date

    That is perfect. Thank you!!!!!

  4. #4
    Registered User
    Join Date
    09-26-2011
    Location
    Lansing, MI
    MS-Off Ver
    Excel 2003
    Posts
    4

    Another Conditional format question

    I am STILL working on this spreadsheet to track medical and dental appointment dates and am looking for a conditional format formula to change the color of a cell if a child is under 4 years old. So far, I have Date of birth in column "D" and a formula to calculate the age in column "F". What I am looking for is a formula to change the cell in column J green if the child's age is under 4 years old as a dentist appointment is not needed for children at this age.

    All help is appreciated,

    Thanks
    Last edited by monstur1; 09-30-2011 at 12:15 PM. Reason: Solved

  5. #5
    Registered User
    Join Date
    09-26-2011
    Location
    Lansing, MI
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Conditional format for overdue date

    I found the answer in case anyone ever needs it:

    =IF(DATEDIF(D10,TODAY(),"Y")<4,TRUE,FALSE)

    "D" is the column with the date fo birth

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional format for overdue date

    Quote Originally Posted by monstur1 View Post
    I found the answer in case anyone ever needs it:

    =IF(DATEDIF(D10,TODAY(),"Y")<4,TRUE,FALSE)
    This is an esoteric point but one that you may find interesting. The condition part of the IF statement evaluates to a result of TRUE or FALSE, so it isn't necessary to use an IF to check the result and then redundantly produce a result of TRUE or FALSE. The formula below is equivalent to the one above, and is more concise. It's not necessarily "better" but programmers like to do things this way


    =DATEDIF(D10,TODAY(),"Y")<4

+ 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