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.![]()
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
-------------
![]()
![]()
If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
Since the goal is to enter o% if the task has not started I can do the following.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.
- 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.
Again thanks for your speedy reply. Have a great day.![]()
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
oldchippy
-------------
![]()
![]()
If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
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).My thinking is you use the following
- 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.
But if you have a better way please let me know.
- Subtask Start date D14
- Today’s Date C8
- Duration Days
![]()
Thanks again for your help
Try this,
=IF(D13>$C$8,0,($C$8-D13)/$G$12) format as a percentage
oldchippy
-------------
![]()
![]()
If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
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.
Try this in G14, format as %
=IF($C$8>E14,(E14-D14)/F14,($C$8-D14)/F14)
oldchippy
-------------
![]()
![]()
If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks