How to Build an Automatic Gantt Chart in Excel

An easy to update Gantt chart in Excel

Building a Gantt chart in Excel is pretty easy. But what if you needed to update any of the tasks? This would usually mean lot’s of time consuming manual editing of cells.  But there is an easier way….

Step in Excel and the ever flexible conditional formatting function! Yes by deploying some neat conditional formatting tricks you can produce a presentable usable Gantt chart in Excel. You can also learn conditional formatting by attending Microsoft Excel training course.

Recap: A Gantt chart is made up of task bars, one for each of the tasks required to complete the project in hand. The task bars typically have start and finish dates and therefore have different lengths on duration.

By using Excel’s Conditional Formatting feature we can create our project task bars for our Gantt chart. We will be able to different colour task bars conveniently managed by conditional formatting. An example is shown below on how cell colours can be changed; sales figures green if they exceed a target figure of 1200.

Target

Let’s create a Gantt chart in Excel

By using conditional formatting we can easily create the following.

Gantt Chart in Excel

Creating the conditional formatting rule

Step 1. Start by selecting the range of cells where bars are to be displayed. In the above example range F2:T11.

Step 2. Select the Home tab then choose Conditional Formatting.

Step 3. Pick New Rule then Choose a formula to determine which cells to format.
In the empty box box (format values if formula is true) enter the formula:

=AND($D2<=F$1,$E2>=F$1)

This formula returns True if a task Start Date is before or equal to the chart date (entered in row 1) AND the Finish Date is after or equal to the chart date.

AND means both conditions within the brackets must apply. The $ sign before a letter means keep that column fixed when applying the rule to the range of cells. Similarly, the $ before a number means fix that row when applying the rule.

Step 4. Now click the Format button and choose a fill colour then OK.

In the example all cells that obey the rule are coloured blue.

Adding more rules

Additional rules can be added for example if certain tasks are designated critical by typing CT in the C column then colour the bars pink.

Project Chart

To do this create a new rule as before but include a third condition where the type is CT.

=AND($D2<=F$1,$E2>=F$1,$C2=”CT”)

Click Format and choose pink as the fill colour.

Tips

For consistency you can choose specific fill colour by selecting Fill, More Colours, Custom then entering 255,153,255 for Red, Green and Blue.

Adding a white top and bottom border as part of the Formatting rule can help to separate the bars when touching.

To make changes to colours or to formulas you must highlight the exact range containing the conditional formatting then select Conditional Formatting, Manage Rules. To help do this quickly select Home, Find & Select, Conditional  Formatting.

Conditional formats can be copied using the Format Painter.

Additional Resources

Present your data in a Gantt chart in Excel

Pro tip: Create a Gantt chart in Excel

 

National Rail Strike – June 2015 – Latest News

Updated – Monday 1 June 2015

National Rail Strike Suspended!

The forthcoming industrial action for this week and the next has been suspended.

More information can be found here.

Again we would like to thank our customers, suppliers and our colleagues for going the extra mile and helping with contingency measures.  All this preparation has meant that were the strikes to go ahead we would have been ready to run all planned 21 training events during the strike days.

Updated – 29 May 2015

Industrial action due to affect National Rail services- 2 strikes on 4-5 June & 9 – 11 June 2015

The RMT (Rail, Maritime and Transport) union have decided to strike over 24 hours from 5 pm June 4th to 5 pm June 5th and 48 hours from 5 pm June 9th to 5 pm June 11th.

As stated on our previous notice page, we are taking additional measures to ensure all our courses run on the days affected. As before we hope the strikes will be averted but will prepare regardless.

Our commitment – courses never cancelled

In the last 10 years we’ve only had 27 out of 12,364 courses disrupted!  As you can see it is a rare event and we are confident that our training delivery will not be disrupted with these latest rail strikes. We are going to great lengths and costs to ensure all our logistics run as well as possible.

As we have done in the past, should our contingency measures fail, we will reschedule the course with delegates agreement and offer a free course.

Your options:

  • Come along as planned safe in the knowledge we will be prepared
  • If you face travel disruption, you can reschedule your course, please see options and fees here.

We understand that should the strikes go ahead provision will be made by Network Rail for rail ticket refunds, please see links below.

Useful resources:

Our status page

Latest national rail strike information from Network Rail

Network Rail status page

follow #IndustrialAction

BBC – Network Rail workers to go on strike in June