Gantt Chart & Formulas

Darren Guess

New Member
Joined
Dec 7, 2011
Messages
28
Good Afternoon All

I currently have a Gantt chart within an excel report that I have managed to get working based upon my limited knowledge and searching threads on this forum. Although it works ok there are elements that I would like to work a little better. The layout of the gantt data is displayed below where:</SPAN>

1) Any row with a purple task in column B has the start and end dates in columns C & E fed from another sheet within the excel. The entire row is locked for editing by any user other than myself, as these are used for performance measurement.
2) All other rows (with a yellow task in column B) have the start and end dates entered by a defined team for each report, where additional rows can be added by copying the last row (38) and inserting where required (As these already have the formulas in the respective cells).
3) The chart is then displayed on a seperate tab where there are currently 4 data series used for the chart. The 'Start Date' (column C) data series is filled with no colour, so that the Gantt appears floating from it's respective start date. Days Completed (column F) displays in green as the chart is advanced along. Days left to complete (column G) displays in blue and finally Additional Days (Column H) displays in red.

If we take row 8 below as an example to explain the formulas these are as follows:
D8 (Duration Days) =E8-C8.
F8 (Days Completed) =IF(J8>=I8,I8,J8).
G8 (Days Left to Complete) =IF(I8-F8<0,0,I8-F8).
I8 (Total Days to Complete) = E8-C8.
J8 (Non-Negativity) =IF($C$43>=C8,$C$43-C8,0) where C43 is a date fed in from another sheet.

Excel 2007
BCDEFGHIJ
2Note: When using the Gantt Chart Input Data, only cells & dates that are coloured in green require filling out. All other dates will be calculated automatically
Please note that the task description cells highlighted in Purple should not be renamed
3
4
5
6Check Duration63
7TaskStart DateDuration (days)End DateDays CompletedDays left to completeAdditional DaysTotal days to completeNon-negativity
8Pre Dock 01/08/12102/08/1210150
9Functions01/08/12 00:00304/08/12 00:0030350
10Thrust Reverser Functions01/08/12 00:00304/08/12 00:0030350
11FR 80 Doubler corrosion investigation01/08/12 12:00203/08/12 13:0020250
12FR 80 Data sent to AIB 03/08/12 13:00003/08/12 15:0000047
13Awaiting AIB FR 80 Response03/08/12 15:00206/08/12 00:00203247
14FR 80 & FR 58 Stress jacking09/08/12 07:00109/08/12 19:0010142
15FR 80 Repair assessment09/08/12 13:00211/08/12 19:0020241
16Open Up 01/08/12 00:00809/08/12 00:0080850
17Base Insp 02/08/12 00:001213/08/12 13:001201249
18Supplemental Insp 02/08/12 00:002425/08/12 19:002402449
19ETIC Review26/08/12 00:00127/08/12 00:0010125
20Ageing A/C Review02/08/12 00:001517/08/12 00:001501549
21NDT Programme07/08/12 00:001825/08/12 00:001801844
22Routine Maintenance09/08/12 00:004220/09/12 00:004204242
23Defect Rectifications09/08/12 00:004927/09/12 00:004274942
24Close up 01/09/12 00:002627/09/12 00:001972619
25Power on 03/09/12 00:00104/09/12 00:0010117
26FR47 AIB Response15/09/12 00:00116/09/12 00:001015
27FR47 Repair Action ?15/09/12 00:00722/09/12 00:005275
28Frame 48+51 installation19/09/12 00:00322/09/12 00:001231
29Post Maintenance Functions 11/09/12 00:001829/09/12 00:0099189
30Post Dock 28/09/12 00:00129/09/12 00:000110
31Engine Runs28/09/12 00:00129/09/12 00:000110
32Defuel and Sump28/09/12 00:00129/09/12 00:000110
33Weigh+Check Completion29/09/12 00:00130/09/12 00:000110
34Test Flight Programme 30/09/12 00:00303/10/12 00:000330
35ETIC (Delivery)02/10/12103/10/120110
36
37
38Description000041172
39
40To add lines, copy the above row, insert at the point you want it and manually set the highlighted dates.
If you subsequently wish to add an additional line copy the above row once again and insert it at the point you want it, manually setting the highlighted dates.
41

<COLGROUP><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL></COLGROUP><THEAD>
</THEAD><TBODY>
</TBODY>
Gantt Chart Data



At present everything works ok and is fairly robust, but the one thing I would like to be able to do is to change the way column H (Additional Days) works. At the moment this is a simple data series on the chart, whereby if a user enters a number the series length is displayed in red. Every day the milestone is missed the user must remember to increase the value by 1 to advance the series on one more day. What I would like to do is to change the logic of this column, so that a user can enter the revised target date for that milestone. I cannot work out what formula would be required so that if the original End Date in column E is surpassed and a date is entered in column H the gantt will still advance as it does presently with a master date reference. I would like the extra days in the revised date series to display in say orange (to show how much we are potentially going to miss a target by), until the date has passed, when it would then turn red (to show how many days we actually missed the target).

I am hoping I have explained what I am looking to achieve well enough, as I have tried to insert the chart also for reference, without success. If someone can guide me how to do this I will post this up also.

Many Thanks in advance
Darren
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,214,979
Messages
6,122,560
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top