Edit a Gantt Chart in Excel: Dates, Tasks, and Bars

Charts & pivot tables · Updated November 3, 2026

Edit a Gantt Chart in Excel: Dates, Tasks, and Bars

Yes. To edit a Gantt chart in Excel, change the task names, start dates, finish dates, or durations in the worksheet that feeds the chart; Excel updates the bars from that data. To change its appearance or which cells it uses, select the chart and use the Chart Design and Format tabs. Most Excel Gantt charts are stacked bar charts with a hidden start-date series, rather than a separate built-in Gantt chart type.

What an Excel Gantt chart contains

A Gantt chart shows project tasks as horizontal bars across a calendar. Each bar’s position indicates when the task starts, and its length indicates how long it lasts. A task table commonly has columns for task name, start date, finish date, and duration. The chart turns the task names into categories and uses the dates and durations to place and size the bars.

In a typical Excel version, the chart is a stacked bar chart with two series: a start-date series and a duration series. The start-date series moves each task bar to the right point on the timeline. It is then formatted with no fill, making it invisible; the visible duration series forms the colored bar. This explains why editing the chart can involve both its source table and its series formatting.

Templates may add columns for owners, completion percentages, milestones, or dependencies. These extra fields do not necessarily affect the chart. Before editing, check which columns are actually represented by the bars and labels. A change to a worksheet cell only changes the chart if that cell is part of the chart’s source data or is referenced by a formula that feeds it.

Find the data behind the chart

Select the chart and inspect the highlighted source range in the worksheet. In Excel for Microsoft 365 on Windows, select the chart, then choose Chart Design > Select Data. The Select Data Source dialog shows the chart data range and lists the individual series. Selecting a series and choosing Edit lets you inspect its series name and values. The category labels, usually task names, can also be changed in this dialog.

If the chart is on a different sheet from its data, Excel may highlight that source sheet when you inspect the chart. The formula bar can also show a chart series reference when you select a series. Avoid changing series references unless you know which cells contain start dates and which contain durations: switching those ranges can make bars disappear or appear at the wrong position.

Some downloaded templates use formulas, named ranges, or Excel tables, so their source may not be a simple rectangle. Look for hidden columns, filters, or formulas in the task table if the displayed chart does not respond as expected. Save a copy before making structural changes to an unfamiliar template.

Change task names, dates, and durations

For a chart whose task table is already set up, the safest routine edit is to update the relevant worksheet cells. Change a task name in the task-name column, or enter a valid Excel date in the start or finish column. If the chart uses a duration column, update that value too. Excel stores dates as serial numbers, so cells formatted as dates are essential for readable input; text that merely looks like a date may not behave like one.

For example, suppose A2:A10 contains task names, B2:B10 contains start dates, C2:C10 contains finish dates, and D2:D10 contains durations. With the start and finish dates in B2 and C2, respectively, enter this in D2 to calculate an inclusive duration in calendar days:

=C2-B2+1

If a task starts May 4 and finishes May 8 of the same year, the result is 5 days, counting both the start and finish dates. Fill the formula down for the other tasks if the duration column is meant to be calculated. If your project defines duration as elapsed days, excluding the start date, omit the +1. Confirm which convention the template uses before replacing its values.

Many basic Gantt charts use durations in calendar days, not working days. A task running from Friday to Monday may therefore span four calendar days even if the team works only on weekdays. If the schedule must reflect a work calendar, check whether the template already calculates working-day durations and accounts for holidays; changing a date alone does not automatically make a basic chart aware of those rules.

Add, remove, or reorder tasks

To add a task, insert a row within the task table or extend the chart’s source range to include the new row. If the source is an Excel table, typing in the row immediately below it often expands the table, but verify that the chart includes the new task. For a regular cell range, use Chart Design > Select Data to adjust the chart data range or its series and category-label ranges.

To remove a task, delete its row or remove it from the chart’s source range. Clearing only the task name can leave an empty category, while clearing only the dates may leave an unexpected bar. If you want to keep the task in the worksheet but temporarily hide it in the chart, check whether the chart’s data-range settings or worksheet filters support that arrangement; behavior can depend on how the chart was built.

Reordering task rows usually changes their display order. In a horizontal bar chart, Excel may show the first worksheet task at the bottom rather than the top. To adjust this, right-click the task-name axis, choose Format Axis, and look for Categories in reverse order. The setting reverses the displayed list; it does not change the dates or task dependencies.

Adjust chart data and series

If the chart points to the wrong cells, choose Chart Design > Select Data and check the chart data range, series, and category labels. A typical Gantt setup assigns the start dates to one series and durations to another. The task names should be the category labels. In a stacked bar chart, the start-date series needs to come before the duration series so that each duration bar begins after its invisible offset.

Use the Switch Row/Column control only when Excel has interpreted rows and columns in the wrong direction. For example, if each task appears as a separate legend item rather than as a separate category, the chart’s orientation may be wrong. After switching, inspect the legend and task axis. A correctly arranged chart normally has task names down one axis and a date scale across the other.

Do not remove the start-date series just because it is invisible. It provides the offset that positions the visible duration bars. If you accidentally delete it, add it back through Select Data using the start-date cells, then confirm the series order and stacked-bar chart type. A blank or incorrect start-date series can shift every task to the beginning of the timeline.

Format the timeline and bars

To change the bar color, select a visible duration bar, then use the Format tab or right-click and choose Format Data Series. The formatting pane lets you change fill, outline, and spacing. If you select an individual bar after selecting the series, you may be able to format just that task, which is useful for highlighting a milestone or critical task. Apply special colors consistently so readers understand what they mean.

To change the date scale, right-click the horizontal date axis and choose Format Axis. Depending on the chart and Excel’s interpretation of the source, the axis options may let you set minimum and maximum bounds, major units, and number format. A narrower date range can make a short project easier to read; a range that is too narrow can hide tasks that start earlier or finish later. If the labels show serial numbers instead of dates, check the axis number format.

Change the chart title by selecting it and typing a clearer description, such as Project delivery schedule. You can add or edit axis titles from Chart Design > Add Chart Element. Gridlines can help readers compare dates, but too many make a chart cluttered. If the chart is difficult to read, first widen it, reduce unnecessary labels, and make sure task names have enough room rather than shrinking all the text.

Show progress and dependencies carefully

A standard stacked-bar Gantt chart does not automatically understand project dependencies. If Task B must begin after Task A, changing Task A’s dates will not necessarily move Task B. The chart displays the dates supplied by the worksheet; it is not, by itself, a project scheduling engine. Record dependencies in a separate column or use formulas and project-management tools designed to calculate schedules if automatic rescheduling is required.

Progress can be shown with a separate percentage-complete column, a label, or a second bar series, but the best approach depends on the template. Avoid entering a completion percentage into a duration cell: the chart may interpret it as a very short duration. If you add a progress series, verify that its values use the same units and date positioning as the rest of the chart, and include a legend or label that explains the visual encoding.

Milestones are often represented as zero-duration tasks, but a zero-width bar may be hard to see. Some templates use a separate marker series or a special symbol instead. Check the workbook’s design before changing a milestone’s duration, since increasing it just to make it visible changes the schedule being communicated.

Common editing problems and fixes

  • The bars all begin at the same date: Check whether the start-date series is missing, excluded from the chart, or no longer stacked before the duration series.
  • A task disappears after editing: Confirm its start and duration cells are numeric dates and numbers, not text or blanks, and that its row remains inside the chart source range.
  • The timeline shows large numbers: Format the date axis as a date, and verify that the source values are real Excel dates.
  • The task order looks upside down: Use the task category axis’s reverse-order option, then check whether the date axis has moved to the opposite side.
  • New rows do not appear: Expand the source range in Select Data or check whether the chart is linked to an Excel table or a named range that needs adjustment.
  • Bars look too thin or crowded: Format Data Series and adjust Gap Width, or enlarge the chart. A smaller gap makes bars thicker; too little gap can make adjacent tasks hard to distinguish.

For Excel for the web, basic cell edits and many chart changes are available, but the controls may be more limited or arranged differently than in the Windows desktop app. If a template depends on advanced chart formatting or the web interface does not expose a needed series setting, open the workbook in desktop Excel. On Mac, chart tabs and dialogs may be arranged differently, but selecting the chart and using its chart-design and formatting controls follows the same general approach.

When Excel is enough—and when it is not

Excel works well for a small or moderately sized schedule that needs a clear visual timeline, familiar worksheet data, and manual control. It is also convenient when the audience already receives project information in spreadsheets. A chart can be customized for printing or included in a status report without requiring a specialized scheduling system.

Consider dedicated project-management software when the plan has many linked tasks, resource conflicts, baselines, work calendars, automatic critical-path calculations, or frequent collaborative updates. Those functions may require more than a chart can provide. Excel can store dates and display bars, but it will not automatically enforce a project’s logic unless the workbook has been specifically built with formulas or automation to do so.

Frequently Asked Questions

Can I edit a Gantt chart directly in Excel?
Yes. Edit the worksheet cells that supply task names, dates, and durations, or select the chart and use Chart Design > Select Data to change its source. The chart updates from its linked data; the bars are not usually edited as independent schedule objects.

Why does my Gantt chart not update when I change a date?
The changed cell may not be included in the chart’s source, the chart may use a separate duration or helper column, or the date may be stored as text. Inspect the series and category ranges with Select Data, then verify the cell’s value and number format.

How do I change the start date shown on the Gantt chart?
Change the task’s start date in the source table to move that task’s bar. To change the visible timeline window for all tasks, format the date axis and adjust its bounds if Excel offers those options. These are different edits: one moves a task, while the other changes the displayed scale.

Can Excel automatically move dependent tasks?
Not in a basic Gantt chart. A standard chart displays the dates in its source data and does not infer dependencies. Automatic changes require a workbook built with scheduling logic or project-management software that supports linked tasks.

How do I add another task to an Excel Gantt chart?
Add a row to the task data and confirm the chart includes it. If it does not, open Chart Design > Select Data and expand the category and series ranges to include the new task’s name, start date, and duration.

Related

Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.

More in Charts & pivot tables

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.