+ Reply to Thread
Results 1 to 4 of 4

Conditional format a cell based on a due date

  1. #1
    Registered User
    Join Date
    06-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    41

    Conditional format a cell based on a due date

    Greetings,
    I am trying to apply a conditional format to a cell that is based on a date. I need the condition to apply when that date entered is within 24 months and again within 21 months.

    Any suggestions on the formula to use?

    Thank you,
    Taiter

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Conditional format a cell based on a due date

    Not sure where you want this, but this should give you the basic concept of how to do what you want....

    =C1<=TODAY()+DATE(0,24,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    41

    Re: Conditional format a cell based on a due date

    Just to make sure I understand the formula - The Date(0,24,0) is actually Date(day, month, year)? This is going to be used to track training and each course has a recurring requirement (e.g. some courses are every 2 years, some are annual, etc). So do I substitute the + for a -? Also do I really need to have the Today() statement since it will based on the date entered in the cell?

    Thank you for the quick reply.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Conditional format a cell based on a due date

    no, =date(year,month,day) If you enter =date(...or any formula for that matter, excel will show you the syntax it expects.

    I included TODAY() to give it a reference. for instance if you enter 6/15/2015 into C1, what would you compare it against to determine the <= 24 months? If you have another date you will compare it against, then use that instead

    I am adding the DATE() value to TODAY() so that it has something to compare with. If your date (that the training last happened on) is in the past, then you would change the forumla to...
    =C1>=TODAY()-DATE(0,24,0)

+ 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. conditional format based on date
    By keith6292 in forum Excel General
    Replies: 1
    Last Post: 03-05-2013, 06:07 PM
  2. Using a macro to create a conditional format based on a date in a cell
    By srsev in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-27-2012, 04:39 PM
  3. Replies: 1
    Last Post: 09-30-2012, 03:01 PM
  4. Replies: 2
    Last Post: 06-22-2012, 08:51 AM
  5. Conditional Format based on date of another cell
    By marjo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-29-2008, 02:41 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