Microsoft KB Archive/926369

= How to create a Gantt chart that uses hours as the scale in Excel 2007 =

Article ID: 926369

Article Last Modified on 10/15/2007

-

APPLIES TO


 * Microsoft Office Excel 2007

-





For a Microsoft Office Excel 2003 version of this article, see 213915.



INTRODUCTION
You can use a Gantt chart in Microsoft Office Excel 2007 to show the progress of a project or to show the relationship among the tasks in a project in relation to time. The unit of time that is most frequently used is days. However, you can also use hours as the unit of time to show the status of the task. To do this in Excel 2007, alter the scale of the value (y) axis.

This article contains an example that uses the hour as the unit of time to show the status of a task.



MORE INFORMATION
The scale in a ordinary Gantt chart is based on the serial number of the date. The scale that is used for the value (y) axis is shown in the following table.

Time is entered as a fraction or as a decimal representation of part of a single day. The scale that is used for a Gantt chart that uses hours is shown in the following table.

To alter the scale, follow these steps:  In Excel, create a new worksheet, and then enter the following information in the worksheet.

This information shows the times at which four sites across the country start a work day in relation to the other sites.

Note In this example, all the times are Eastern time.  In cell E2, type the following formula: =D2*0.0417 This formula converts the duration to a decimal fraction of a single day. This duration is expressed in hours.

Note The value 0.0417 is the decimal equivalent of one hour.  Select cell E2. Grab the fill handle, and then fill the formula down to cell E5. On the Insert menu, click Bar in the Charts area, and then click the 2D Bar chart (this is the leftmost chart). Right-click the chart, and then click Edit Data Source.</li> In the Edit Data Source dialog box, click Add under Legend Entries (Series).</li> In the Edit Series dialog box, click Series Name, and then select cell B1 on the worksheet.</li> Click Series Values, delete any values in the box, select cells B2 to B5, and then click OK.</li> In the Edit Data Source dialog box, click Add under Legend Entries (Series).</li> In the Edit Series dialog box, click Series Name, and then select cell E1 on the worksheet.</li> Click Series Values, delete any values in the box, select cells E2 to E5, and then click OK.</li> In the Edit Data Source dialog box, click Edit under the Horizontal (Category) Axis Labels, and then select cells A2 to A5 on the worksheet.</li> Click OK to close the Axis Labels dialog box, and then click OK to close the Edit Data Source dialog box.</li> Right-click the chart, and then click Change Chart Type.</li> In the Change Chart Type dialog box, click Bar in the left pane, click Stacked Bar, and then click OK.

Note Stacked Bar is the second bar chart from the left.</li> On the chart, right-click Horizontal (Value) Axis, and then click Format Axis.</li> In the Format Axis dialog box, click Axis Options in the left pane, click Fixed under Axis Options in the right pane, and then set the following values. </li> Under Vertical Axis Crosses, click Axis Value, type 0.33333, and then click Close.</li> On the Ribbon, click the Layout tab, expand Chart Area, click Series Start, and then click Format Selection.</li> In the Format Data Series dialog box, click Fill in the left pane, and then click No fill in the right pane.</li> In the Format Data Series dialog box, click Border Color in the left pane, click to select No line in the right pane, and then click Close.</li></ol>

The chart displays the duration of each shift as a floating bar. The left edge of each bar is the starting time, and the right edge is the ending time. The relative positions of the bars show the relationships among the shifts.

Additional query words: XL2007 Excel2007

Keywords: kbhowto kbinfo kbexpertisebeginner KB926369

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.