+ Reply to Thread
Results 1 to 10 of 10

Automate percentage complete in an Excel Gantt chart

  1. #1
    Registered User
    Join Date
    06-22-2007
    Posts
    5

    Automate percentage complete in an Excel Gantt chart

    I just download a free excel Gantt chart template (see attached file). The goal is to calculate the percentage complete automatically for the sub tasks. My thought process was to determine how many days from present date (see cell C8) and the start date of the subtask (see D14) and subtract that from the days remaining in the subtask (see cell H14). Then convert into a percentage (see cell G14).

    The problem I have is when the subtask has not stated as of the present date the output is a negative number.

    What I want to happen is when the output or sum is negative than it should be zero. That way the percentage will be zero and the Gantt bar will not move. Please let me know if more information is needed.

    Any help or hints will be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Is this what you want? In cell F4

    =IF(OR(D14="",E14=""),0,DAYS360(D14,E14)+1) then in cell G14

    =IF(ISERR((F14-(F14-H14))/F14),0,(F14-(F14-H14))/F14) then in cell H14

    =IF(OR(D14="",E14=""),0,DAYS360(D14,C8))
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    06-22-2007
    Posts
    5

    Question Thanks - The logic

    Since the goal is to enter o% if the task has not started I can do the following.
    • If today’s date in C8 is not equal to or greater than the start date of the subtask in cell G14 leave than leave it 0% or 0 in D14
    • If today’s date is great than the subtask start date (D14), then calculate the percentage of days worked in G14 % complete.
    I just am not sure of the formula. But will have time to work on it later tonight. I know a little about formulas and programming. So if you have any tips or sites I can use please let me know.

    Again thanks for your speedy reply. Have a great day.

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Here's a few sites, starting with this one

    http://www.exceltip.com/exceltips.php?view=excel_links

    http://www.contextures.com/tiptech.html

    http://exceltips.vitalnews.com/

    There's also plenty more on the link below oldchippy

  5. #5
    Registered User
    Join Date
    06-22-2007
    Posts
    5

    Question Formula to Calulate the % complete

    I hope you don't mind helping me again. But I am unable to get the formula to work. Below is what I am tring to achive. Also I have attached the document I am working from

    Create a formula to return the % complete (G14).
    • To return the % complete calculate the numbers of days between the subtask and today’s date in %.
    • But if a negative number is returned because the start date has not begun yet return a zero.
    My thinking is you use the following
    • Subtask Start date D14
    • Today’s Date C8
    • Duration Days
    But if you have a better way please let me know.
    Thanks again for your help
    Attached Files Attached Files

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this,

    =IF(D13>$C$8,0,($C$8-D13)/$G$12) format as a percentage

  7. #7
    Registered User
    Join Date
    06-22-2007
    Posts
    5

    Smile After the subtask end

    It almost worked. But if today’s date in greater than the end date of the subtask it adds the additional days and percentage. What I need to happen is once the subtask ends it stays at 100%. So I am trying to work that out.

    Thanks for getting me this far. Any help will be greatly appreciated.

  8. #8
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this in G14, format as %

    =IF($C$8>E14,(E14-D14)/F14,($C$8-D14)/F14)

  9. #9
    Registered User
    Join Date
    02-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Automate percentage complete in an Excel Gantt chart

    I cannot change the date of the revised file. Can you help me with that?
    I cannot understand the MIN at Cell L10. It determines the date of the gant chart.

  10. #10
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Automate percentage complete in an Excel Gantt chart

    Hi vptort,

    You may not catch as much attention with this thread since it is so old.

    You are better off creating your own thread and linking back to this thread if required.
    HTH
    Regards, Jeff

+ 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