+ Reply to Thread
Results 1 to 3 of 3

How to use traffic light conditional formatting icon set with dates.

  1. #1
    Registered User
    Join Date
    04-03-2013
    Location
    miami, florida
    MS-Off Ver
    Excel 2007
    Posts
    46

    Lightbulb How to use traffic light conditional formatting icon set with dates.

    I couldnt find this anywhere by searching it, so I figured it out and thought I would share the results.

    I wanted to have a traffic light change color depending how close the current date was to a date in a particular cell in the spreadsheet. Green for more than 14 days away, yellow for less than 14 days away, and red for today or past due.

    This would be useful for upcoming tasks/calander organizing etc.

    I made it extremely easy to modify/edit for your own purposes, there are two parts. One part will update the entire spreadsheet, you could assing it to the button, the other part will make it so that any new changes to dates put into the spreadsheet will have it automatically update the corresponding traffic light.

    The macro part you would add as a module:

    Please Login or Register  to view this content.
    and here is the party you would put on the sheet code:

    Please Login or Register  to view this content.
    You would need to format the column directly to the right of your dates (in this example, column 7) for conditional formatting with traffic light icon set, where green is >= 3, yellow is 2, and red is 1 and have it hide the data.

    If you have any questions about this, let me know I'd be happy to explain further.

  2. #2
    Registered User
    Join Date
    04-03-2013
    Location
    miami, florida
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: How to use traffic light conditional formatting icon set with dates.

    Ok so I have a problem with this code. It works 100% fine on Excel 2007. When I try to use it in Excel 2013, it seems when it is comparing the date, it is messing up and always is showing the wrong value, any ideas on why this would be?

  3. #3
    Registered User
    Join Date
    04-03-2013
    Location
    miami, florida
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: How to use traffic light conditional formatting icon set with dates.

    Heres the fix when updating to 2013

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

+ 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] Conditional Formatting - setting up a icon set rule for traffic light icons??
    By David Johnstone in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 03-26-2013, 05:47 PM
  2. Conditional Formatting - ICON Set - traffic light - text value?
    By laoyeong in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-23-2013, 03:21 PM
  3. Need help with traffic light conditional formatting icon set
    By jjospeh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 03:33 PM
  4. Conditional Formatting - Traffic light dates
    By zx561 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-19-2012, 02:51 PM
  5. Replies: 4
    Last Post: 11-08-2007, 11:53 AM

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