+ Reply to Thread
Results 1 to 10 of 10

Expiration based coloring, based on when training was done

Hybrid View

  1. #1
    Registered User
    Join Date
    08-28-2013
    Location
    FT Sill, OK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Expiration based coloring, based on when training was done

    I am trying to create a spreadsheet of mandatory annual training certifications that change colors based on when the training was completed. Been experimenting with different formulas, but I just can't seem to get it to work.

    Red= >365 days (past due)
    Amber=365 to 335 days (30 days out)
    Green= <335 days (more than 30 days out)

    Basically I recieved the certificates and update the individual's cells with the completion dates.

    Example:
    John Doe
    Cert A (31 OCT 12)
    Cert B (30 NOV 12)
    Cert C (31 DEC 12)

    If the current date was -01 NOV 2013- then Cert A would be RED because it is 1 day past due, Cert B would be Yellow because he still has 29 days left, and Cert C would be Green because he has more than a month left.

    Thanks for any help you are able to render.

    -Colin Marcum
    Last edited by colinmarcum; 08-28-2013 at 11:19 AM.

  2. #2
    Registered User
    Join Date
    06-27-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Expiration based coloring, based on when training was done

    i had a similar project. here's what i did.

    First i set up when the annual training was due next. I used this formula for annual in column N.
    =IF(M4="","",M4+DATE(1,1,-1))
    M4 being the first cell with when the training was done.

    Then i conditionally formatted the N column to do the following.
    cell value less than =NOW()
    Red (past due)

    Cell value between =NOW() and =NOW()+30
    Yellow (coming up within 30 days)

    Cell value between =NOW()+31 and =NOW()+60
    Orange (coming up within 60 days)

    Hope this helps.

  3. #3
    Registered User
    Join Date
    08-28-2013
    Location
    FT Sill, OK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Expiration based coloring, based on when training was done

    Does that mean I need establish a due date for each individual training requirement?

    Capture.PNG

    From the picture we have 30 personnel that each have to do 13 different annual training requirements. And since the due date is based on a year after the course was taken that means a 390 different due dates. I was thinking =TODAY-L3()<365 then it is green; =TODAY-L3()<335 then it is amber; and so on.

    I keep getting confused on if a past date is a negative value; thus subtracting it from TODAY's would make it a positive.
    Last edited by colinmarcum; 08-28-2013 at 05:23 PM.

  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
    53,048

    Re: Expiration based coloring, based on when training was done

    Quote Originally Posted by colinmarcum View Post
    Does that mean I need establish a due date for each individual training certificate?
    If you are setting up to check when they need to be renewed, I would have thought this would be self-evident? If you dont know the due date (or at least have the date last updated, and the certificate duration - 6 mths, 12 mths etc) then how do you know if it expires?

    On a side-note to Liz, you can use TODAY() instead of NOW() - NOW() includes the time, which is not needed here. Also, if you will be using this in a LOT of formulas, it will speed things up if you put =TODAY() in it's own cell and then reference that cell in formulas. TODAY() and NOW() are volatile functions, which means they update EVERY time anything is updated in the workbook...pretty much every timer you enter a value/text
    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

  5. #5
    Registered User
    Join Date
    08-28-2013
    Location
    FT Sill, OK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Expiration based coloring, based on when training was done

    I know it is exactly 365 days from the date posted in the cell. The problem is that if I establish a due date for each individual cell, and generate a rules for each due date that means I am generating three different rules for 390 different due dates. I am trying to find a formula based on the difference between the posted date and the TODAY date. >365 days (RED), 365 to 335 days (AMBER), <335 days (GREEN)

    Just trying to find three formulas that I can copy+paste formatting to every cell.

  6. #6
    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
    53,048

    Re: Expiration based coloring, based on when training was done

    you will need 3 different rules anyway, but you will be comparing today's date against when they were last updated.

    Also, Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you

  7. #7
    Registered User
    Join Date
    08-28-2013
    Location
    FT Sill, OK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Expiration based coloring, based on when training was done

    I know I will need three rules "Just trying to find three formulas that i can copy+paste formatting to every cell."

    I don't want 3x390 different rules that I have to type.

    C BTRY Annual Training Requirements (28AUG13).xlsx

    Here is the workbook from the picture. All the certifications I have posted are up to date so they would all be GREEN, but as JAN 14 starts coming around then those JAN 13 dates should start turning YELLOW, then when they pass turn RED.

  8. #8
    Registered User
    Join Date
    06-27-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Expiration based coloring, based on when training was done

    Colin, for general purposes, you would need to put the formulas into the conditional formatting in order to get the color, otherwise it would mess up your data in the cells. Then you apply the conditional formatting to the entire column. 3 rules/formulas being typed. That's it. period.
    The only way i can see you getting what you are asking for specifically would be creating a vba to do it automatically, but if you have that many cells, it may take a while and would have to run every time you open the workbook or worksheet.
    Also, setting up the expiration/renewal date, you put in the first formula and drag it down. I'm not sure why you think you need to type over 1000 formulas. this would then auto-generate when you put in the updated certification date.

    fdibbins: TODAY() would work, but when researching i found the NOW() formula and it worked for what i needed.

  9. #9
    Registered User
    Join Date
    06-27-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Expiration based coloring, based on when training was done

    Duplicate - due to Forum glitch
    Last edited by liz5818; 08-29-2013 at 09:17 AM.

  10. #10
    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
    53,048

    Re: Expiration based coloring, based on when training was done

    yes the server has been acting up a bit today

+ 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. [SOLVED] Beginning of Year Numbers Based on Expiration
    By sulax in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-29-2013, 11:11 AM
  2. 3 Color Conditional Formatting Based on Various Expiration Dates
    By sandmankuwait in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2013, 11:11 AM
  3. Classroom-based training?
    By Lewej23 in forum The Water Cooler
    Replies: 2
    Last Post: 08-03-2012, 08:05 PM
  4. Macro - schedule people for training based off their schedule and available training
    By downed_pipper1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2009, 04:59 PM
  5. Expiration date based on 5 years and Birth month,day ...
    By Kane in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 01-26-2006, 12:42 PM

Tags for this Thread

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