+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Need help to be able to change colors of a cell based upon the date in the cell...

  1. #1
    Registered User
    Join Date
    07-12-2012
    Location
    Fort Bragg, NC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Need help to be able to change colors of a cell based upon the date in the cell...

    Hi all,

    I am new here, though not new to MS Excel. I am in the military, and have a good basic knowledge on how to use Excel 2007, and up to this point I've been fine with that. However, I've been tasked with coming up with a Certification Tracker that will change colors as the expiration date for that Soldiers certification comes within 30 days of expiring (AMBER), and then again when it has expired (RED). All dates are good for exactly one year, and should change to AMBER after 335 days have passed from the date entered onto the cell, and then change to RED after 365 have elapsed. Also, any cells that do not contain a date should automatically go to RED. The cells utilized for dates are block selected from C2 to O52. These features need only be applied to the "Annual Certifications" sheet, and not affect the "Additional Training" sheet in the same Workbook.

    Hopefully my description of what I am trying to accomplish is clear. I've tried to figure out how to accomplish this within Excel itself, but it seems I need to know coding to pull this off. Anyone willing to help by posting the code necessary to help accomplish this task would be greatly appreciated. If requested, I can provide the Certification Tracker as it currently exists, without sensitive information.

    Thank you all in advance for your help.
    Last edited by dcorsivo; 07-12-2012 at 10:59 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Need help to be able to change colors of a cell based upon the date in the cell...

    Hi dcorsivo and welcome to the forum.

    Giving us a look at the layout of your data is always prefered. It sounds like you need conditional formatting of your data based on todays date.

    Read
    http://msdn.microsoft.com/en-us/libr...ffice.11).aspx
    http://chandoo.org/wp/2010/01/05/con...matting-dates/
    http://spreadsheets.about.com/od/adv...atting-hub.htm
    http://www.mrexcel.com/articles/due-...formatting.php

    to see what I'm thinking you need to learn.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    07-12-2012
    Location
    Fort Bragg, NC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Need help to be able to change colors of a cell based upon the date in the cell...

    1st Platoon Mandatory Training Tracker (beta).xlsx

    Hi MarvinP,

    Thank for replying to my post. I've uploaded the data file for your viewing pleasure. To answer your statement on conditional formatting, I've looked through that, and it doesn't suit my needs. First, the conditions aren't determined off of todays date. Not everyone has taken their certification tests on the same day; but the status need to change based on the day they took the cert test. For example, if someone took their OPSEC cert on 30-Jan-12, I need the Amber-Red status to reflect accuratly from the date the cert was taken. So, when 30-Dec-12 come around, it need to change to amber, and on 30-Jan-13 it need to change to red. Hopefully that clarifies my needs. Upon opening the file, you should be bale to see what I am getting at.

    Thanks for you time!

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Need help to be able to change colors of a cell based upon the date in the cell...

    Hi,

    Look at the attached and the two conditional formatting rules I've created. I think this is what you want.

    Change some of the dates and see if they meet your requirements.

  5. #5
    Registered User
    Join Date
    07-12-2012
    Location
    Fort Bragg, NC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Need help to be able to change colors of a cell based upon the date in the cell...

    Yes, you are on exactly the right track. Amber function is working great, and the red no entry is working great, too. Now, how can I get them to turn red once 365 days have expired? How do I view your rules?

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Need help to be able to change colors of a cell based upon the date in the cell...

    Look at rules for conditional formatting. Manage the rules and add a rule to make greater than 365 red.

    See if the attached is what you want now. Change some dates and see if the format correctly. Look at the 3 CF rules I have and see if you understand them. If not read those links above or learn more about Conditional Formatting.
    Attached Files Attached Files

+ 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