18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Learning Advanced Charting 20<br />

Creating a Gantt chart<br />

A Gantt chart is a horizontal bar chart often used in project management applications. Although Excel doesn’t<br />

support Gantt charts per se, creating a simple Gantt chart is fairly easy. The key is getting your data set up<br />

properly.<br />

Figure 20.38 shows a Gantt chart that depicts the schedule for a project, which is in the range A2:C13. The<br />

horizontal axis represents the total time span of the project, and each bar represents a project task. The<br />

viewer can quickly see the duration for each task and identify overlapping tasks.<br />

ON the CD-ROM<br />

A workbook with this example is available on the companion CD-ROM. The filename is gantt<br />

chart.xlsx.<br />

Column A contains the task name, column B contains the corresponding start date, and column C contains<br />

the duration of the task, in days.<br />

Follow these steps to create this chart:<br />

1. Select the range A2:C13, and create a Stacked Bar Chart.<br />

2. Delete the legend.<br />

3. Select the category (vertical) axis and display the Format Axis dialog box.<br />

4. In the Format Axis dialog box, specify Categories In Reverse Order to display the tasks in<br />

order, starting at the top. Choose Horizontal Axis Crosses At Maximum Category to display the<br />

dates at the bottom.<br />

5. Select the Start Date data series and display the Format Data Series dialog box.<br />

6. In the Format Data Series dialog box, click the Series Options tab and set the Series<br />

Overlap to 100%. Click the Fill tab, and specify No Fill. Click the Border Color tab and specify<br />

No Line. These steps effectively hide the data series.<br />

7. Select the value (horizontal) axis and display the Format Axis dialog box.<br />

8. In the Format Axis dialog box, adjust the Minimum and Maximum settings to accommodate<br />

the dates that you want to display on the axis. Unfortunately, you must enter these values as<br />

date serial numbers, not actual dates. In this example, the Minimum is 39181 (April 9, 2007) and<br />

the Maximum is 39261 (June 28, 2007). Specify 7 for the Major Unit, to display one-week intervals.<br />

Use the number tab to specify a date format for the axis labels.<br />

9. Apply other formatting as desired.<br />

417

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!