Вы находитесь на странице: 1из 3

Present your data in a Gantt chart in Excel

Show All
Even though Microsoft Office Excel 2007 does not provide a Gantt chart type, you can simulate a Gantt chart by customizing a stacked bar chart type so that it depicts tasks, task duration, and hierarchy.

An Excel Gantt chart typically uses days as the unit of time along the horizontal axis. If you want to use hours instead of days, see the link in the See Also section about how to create a Gantt chart that uses hours as the scale in Excel 2007.

What do you want to do?


Simulate a Gantt chart Save a chart as a template

Simulate a Gantt chart


The following procedure will help you create a Gantt chart with results that are similar to those shown in our example Gantt chart graphic. For this chart, we used the example worksheet data. You can copy this data to your worksheet, or you can use your own data, as long as you use the same column headers and worksheet structure. 1. Copy the example worksheet data into a blank worksheet, or open the worksheet that contains the data that you want to plot into a Gantt chart. How to copy the example worksheet data

A 1 2 3

Task StartDuration Task 10 Task 22 2 6

4 5 6

Task 38 Task 417 Task 520

9 3 5

NOTE The values in columns B and C (Start and Duration) represent the number of days from the start date and the number of days required to complete the task.

6. 7. 8. 9.

Select the data that you want to plot in the Gantt chart (A1:C6 in our example worksheet data). On the Insert tab, in the Charts group, click Bar. Under 2-D Bar, click Stacked Bar. Click the chart area of the chart. This displays the Chart Tools, adding the Design, Layout, and Format tabs.

10.

On the Design tab, in the Chart Styles group, click the chart style that you want to use.

TIP For our Gantt chart, we used Style 27.

11. 12.

In the chart, click the first data series (Start), or select it from a list of chart elements (Format tab, Current Selection group, Chart Elements box). On the Format tab, in the Current Selection group, click Format Selection.

13. 14. 15. 16. 17. 18. 19.

Click Fill, and then click No fill. Click Close. In the chart, click the legend, and then press DELETE. Select the vertical (category) axis, or select it from a list of chart elements (Format tab, Current Selection group, Chart Elements box). On the Format tab, in the Current Selection group, click Format Selection. Under Axis Options, select the Categories in reverse order check box, and then click Close. If you want to use theme colors that are different from the default theme that is applied to your workbook, do the following: 1. On the Page Layout tab, in the Themes group, click Themes.

2.

Under Built-in, click the theme that you want to use.

TIP For our Gantt chart, we used the Office theme.

Top of Page

Save a chart as a template


If you want to create another chart like the one that you just created, you can save the chart as a template that you can use as the basis for other similar charts. 20. 21. Click the chart that you want to save as a template. On the Design tab, in the Type group, click Save as Template.

22.

In the File name box, type a name for the template.


TIP Unless you specify a different folder, the template file (.crtx) will be saved in the Charts folder, and the template becomes

available under Templates in both the Insert Chart dialog box (Insert tab, Charts group, Dialog Box Launcher Chart Type dialog box (Design tab, Type group, Change Chart Type). For more information about how to apply a chart template, see Reuse a favorite chart by using a chart template.

) and the Change

NOTE A chart template contains chart formatting and stores the colors that are in use when you save the chart as a template. When you use a chart template to create a chart in another workbook, the new chart uses the colors of the chart template not the colors of the document theme that is currently applied to the workbook. To use the document theme colors instead of the chart template colors, right-click the chart area, and then click Reset to Match Style on the shortcut menu

Вам также может понравиться