+ Reply to Thread
Results 1 to 8 of 8

Color coding cells based on due dates for a series of milestones

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Color coding cells based on due dates for a series of milestones

    Thank you for assisting and looking!!!

    OK, so we have a 4-month process that consists of 15 milestones, each having a specific amount of time allowed to complete. The time allowed to complete for each milestone varies per milestone (some take 3-days, some are 7 days, 5-day, 14 days, 10 days, etc).

    I need a formula to show that if a milestone is completed on time, a corresponding cell turns green. If it is 1 - 4 days late it is yellow. If it is 5 or greater days late it turns red.

    For example: if milestone A should take 3 days to complete and it starts on 01Sep13 and it is completed by 03Sep13 then the corresponding cell will be green.
    Milestone B should take 7 days, and in a perfect world it should be completed by 10Sep13, but it is delayed and completed on 12Sep13, so the corresponding cell will be yellow.

    Now here is the tricky part, Milestone C (which should take 5 days) in a perfect world should be completed by 15Sep13, but since Milestone B was delayed it is starting 2 days late. If Milestone C is completed in 5 days (started 12Sep13 and end 17Sep13), how do I show that milestone as Green, but the overall project in yellow because it is 2 days behind schedule?

    We have a tracker spreadsheet where we have to put all the dates in. I need a formula that shows the current status in color for each of the 15 milestone based on the dates I enter and the allowed time for each milestone in one column AND another column that shows overall status of project in color

    The intent is to track which milestones allowable time to complete (after multiple iterations of this process) are just unattainable or where allowed time can be shortened.

    I hope someone can help or am I asking something that is too difficult to create and would be better off hand jamming everything in there myself?
    Thanks,
    Travis

  2. #2
    Registered User
    Join Date
    07-31-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Color coding cells based on due dates for a series of milestones

    I added an example of the data I would enter (meaning dates)...what I need is columns G through I to have formulas to display what I have hand jammed in in the example, based off the dates I entered.

    Thanks again.
    Attached Files Attached Files
    Last edited by popeye2295; 08-05-2013 at 12:12 PM. Reason: typo

  3. #3
    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,938

    Re: Color coding cells based on due dates for a series of milestones

    Hi and welcome to the forum

    Just so that I understand, you want the color change based on the value in G and to be the color in H (but those 2 columns wont actually exist you just put them there to show what you wanted?)
    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

  4. #4
    Registered User
    Join Date
    07-31-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Color coding cells based on due dates for a series of milestones

    Hello FDibbins, Thank you for the reply. the Colors in Column H and J are based off the values in G and I. If the value is 0 or less days, then it is green. If the value is 1 to 4 days, it is yellow. If it is greater than 5 days, then it is red.

    the values in G of course will have to come from a formula that compares the difference in the dates entered, to the days the milestone is supposed to take.
    The values in I will have to come from the difference in days from the Scheduled completion time to the actual completion time as a running total for the whole project.

    So at the beginning of the project, I wil enter in columns A through D as the base info and schedule. then as the project moves along, I will hand jam columns E and F, so that the remaining columns G through J will automatically populate with variances and colors.

    I am not Excel Savvy to this level, so any assistance is greatly appreciated.

    I hope I have communicated it well enough. Thanks!!!!

  5. #5
    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,938

    Re: Color coding cells based on due dates for a series of milestones

    IF my understanding for how you arrive at the values in I:J is correct...
    1. highlight the range you want to apply the conditional formatting to (I used F2:F16)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =F2-D2<=0 format fill GREEN
    Repeat 3&4, using =AND(F2-D2>0,F2-D2<5) Format fill YELLOW
    repeat 3&4, using =F2-D2>5 format fill RED

    I am unsure how you arrive at the values in G, but perhaps the above will guide you in how to do those too?

    Based on your last post, it seems you want the colors to appear in G:J? why not just have the relevant column (Like F) colored instead, and do away with the the last 4 columns?
    Last edited by FDibbins; 08-05-2013 at 01:15 PM.

  6. #6
    Registered User
    Join Date
    07-31-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Color coding cells based on due dates for a series of milestones

    Your above post helped out perfectly for column I.

    for column G, that data come from the amount of days taken between columns E and F...in the case of E2 and F2 ...15 days, which when compared to column B (15 days) it was on time...so it was 0 days ahead or behind schedule, so it should be green.

    What would be the formula to subtract between two dates, and then subtract it from the value in column B, so if it is zero or less than zero, then green; greater than zero but less than 5, yellow; and 5 or greater, red?

    I had a question about something else, but with your help above, I figured it out thanks!

  7. #7
    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,938

    Re: Color coding cells based on due dates for a series of milestones

    Not sure where you would want to apply this, but follow the instructions in post # 5, and change the formulas to...
    =F2-(E2+B2)<=0 GREEN
    =and(F2-(E2+B2)>0,F2-(E2+B2)<5) YELLOW
    =F2-(E2+B2)>5 RED

  8. #8
    Registered User
    Join Date
    07-31-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Cool Re: Color coding cells based on due dates for a series of milestones

    Hurray! I got everything I needed. Thank you so much FDibbins for your assistance. With your help I was able to get what I needed on the spreadsheet. I have attached my example. After numerous projects, we will be able to track trends where the allotted time is unattainable which will allwo us to move due dates to the right accordingly, or tighten due dates if they are consistently being accomplished earlier than scheduled.

    So happy - thanks again.
    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)

Similar Threads

  1. 30/60/90 color coding retraining dates
    By darkside454 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2013, 10:10 AM
  2. Color Coding Cells Based On Data From Another Cell
    By VBHendo in forum Excel General
    Replies: 10
    Last Post: 02-18-2013, 09:59 AM
  3. Color Coding Cells - Based on Time Since Entered Data
    By oojrod06oo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-16-2013, 07:08 AM
  4. Excel 2007 : Color coding Dates
    By CODO69 in forum Excel General
    Replies: 8
    Last Post: 05-01-2009, 06:37 AM
  5. Apply Color Coding to Dates based on conditioning
    By DarrenH in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 08-09-2007, 12:46 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