How to make a Gantt chart in Excel

 

What is a Gantt chart?

The Gantt chart bears a name of Henry Gantt, American mechanical engineer and management consultant who invented this chart as early as in 1910s. A Gantt diagram in Excel represents projects or tasks in the form of cascading horizontal bar charts. A Gantt chart illustrates the breakdown structure of the project by showing the start and finish dates as well as various relationships between project activities, and in this way helps you track the tasks against their scheduled time or predefined milestones.


1. Create a project table

You start by entering your project's data in an Excel spreadsheet. List each task is a separate row and structure your project plan by including the Start dateEnd date and Duration, i.e. the number of days required to complete the tasks.

Tip. Only the Start date and Duration columns are necessary for creating an Excel Gantt chart. If you have Start Dates and End Dates, you can use one of these simple formulas to calculate Duration, whichever makes more sense for you:

Duration = End Date - Start Date

Duration = End date - Start date + 1
Create a table for the Gantt chart

2. Make a standard Excel Bar chart based on Start date

You begin making your Gantt chart in Excel by setting up a usual Stacked Bar chart.

  • Select a range of your Start Dates with the column header, it's B1:B11 in our case. Be sure to select only the cells with data, and not the entire column.
  • Switch to the Insert tab > Charts group and click Bar.
  • Under the 2-D Bar section, click Stacked Bar.

  • As a result, you will have the following Stacked bar added to your worksheet:

  • Note. Some other Gantt Chart tutorials you can find on the web recommend creating an empty bar chart first and then populating it with data as explained in the next step. But I think the above approach is better because Microsoft Excel will add one data series to the chart automatically, and in this way save you some time.

    3. Add Duration data to the chart

    Now you need to add one more series to your Excel Gantt chart-to-be.

    1. Right-click anywhere within the chart area and choose Select Data from the context menu.
    2. The Select Data Source window will open. As you can see in the screenshot below, Start Date is already added under Legend Entries (Series). And you need to add Duration there as well.
    3. Click the Add button to select more data (Duration) you want to plot in the Gantt chart.

    4. The Edit Series window opens and you do the following:
      • In the Series name field, type "Duration" or any other name of your choosing. Alternatively, you can place the mouse cursor into this field and click the column header in your spreadsheet, the clicked header will be added as the Series name for the Gantt chart.
      • Click the range selection icon  next to the Series Values field.

      • A small Edit Series window will open. Select your project Duration data by clicking on the first Duration cell (D2 in our case) and dragging the mouse down to the last duration (D11). Make sure you have not mistakenly included the header or any empty cell.

      • Click the Collapse Dialog icon to exit this small window. This will bring you back to the previous Edit Series window with Series name and Series values filled in, where you click OK.
      • Now you are back at the Select Data Source window with both Start Date and Duration added under Legend Entries (Series). Simply click OK for the Duration data to be added to your Excel chart.

      • The resulting bar chart should look similar to this:

      • 4. Add task descriptions to the Gantt chart

        Now you need to replace the days on the left side of the chart with the list of tasks.

        1. Right-click anywhere within the chart plot area (the area with blue and orange bars) and click Select Data to bring up the Select Data Source window again.
        2. Make sure the Start Date is selected on the left pane and click the Edit button on the right pane, under Horizontal (Category) Axis Labels.

        3. A small Axis Label window opens and you select your tasks in the same fashion as you selected Durations in the previous step - click the range selection icon , then click on the first task in your table and drag the mouse down to the last task. Remember, the column header should not be included. When done, exit the window by clicking on the range selection icon again.

        4. Click OK twice to close the open windows.
        5. Remove the chart labels block by right-clicking it and selecting Delete from the context menu.
      • At this point your Gantt chart should have task descriptions on the left side and look something like this:

      • 5. Transform the bar graph into the Excel Gantt chart

        What you have now is still a stacked bar chart. You have to add the proper formatting to make it look more like a Gantt chart. Our goal is to remove the blue bars so that only the orange parts representing the project's tasks will be visible. In technical terms, we won't really delete the blue bars, but rather make them transparent and therefore invisible.

        1. Click on any blue bar in your Gantt chart to select them all, right-click and choose Format Data Series from the context menu.

        2. The Format Data Series window will show up and you do the following:
          • Switch to the Fill tab and select No Fill.
          • Go to the Border Color tab and select No Line.


        Note. You do not need to close the dialog because you will use it again in the next step.

         

        As you have probably noticed, the tasks on your Excel Gantt chart are listed in reverse order. And now we are going to fix this.Click on the list of tasks in the left-hand part of your Gantt chart to select them. This will display the Format Axis dialog for you. Select the Categories in reverse order option under Axis Options and then click the Close button to save all the changes.









        The results of the changes you have just made are:

        • Your tasks are arranged in a proper order on a Gantt chart.
        • Date markers are moved from the bottom to the top of the graph.

        Your Excel chart is starting to look like a normal Gantt chart, isn't it? For example, my Gantt diagram looks like this now:


Final Result


Post a Comment

Previous Post Next Post

Contact Form