Guide · 2026-11-10

How to Color-Code a Gantt Chart in Excel: 5 Quick Steps

A Gantt chart can show every task and date yet still leave you hunting for the work that needs attention. When all the bars look alike, delayed tasks, active work, and completed milestones blur together.

You could recolor each bar manually, but that takes time and can become inconsistent as a project changes. A chart that needs constant upkeep is easy to stop trusting.

Here’s the quick fix: create a stacked bar chart in Excel, then assign a clear color to each task bar. I’ll walk you through five steps, show you how to make colors update automatically, and explain how to keep the chart readable as plans shift.

How to Color-Code a Gantt Chart in Excel in 5 Steps

For a quick chart, assign one color to each task bar according to its status. You’ll need task names, start dates, durations, and a status column in your worksheet.

  1. Prepare your task details

    Create columns for Task, Start Date, Duration, and Status. For example, your rows might show “Design,” “May 6,” “5 days,” and “In progress.”

    Use real Excel dates in the Start Date column and numeric values for Duration. Consistent status labels, such as Planned, In progress, and Complete, make color choices easier to apply.

  2. Insert a stacked bar chart

    Select the task names, start dates, and durations. In Excel, choose Insert, then select a Stacked Bar chart from the bar chart options.

    The chart will show two series: Start Date and Duration. The start-date bars position each task along the timeline, while duration bars represent the work period.

  3. Hide the start-date series

    Click a Start Date bar, open Format Data Series, and set its fill to No fill. The dates will still position the duration bars, but the start-date series won’t appear as colored bars.

    If the task order appears upside down, right-click the vertical axis, choose Format Axis, and select Categories in reverse order. Your first task should appear at the top.

  4. Color each task bar by status

    Click a duration bar once to select the series. Click the same bar again to select only that task’s data point, then open Format Data Point and choose its fill color.

    Repeat for each task. For example, use gray for Planned, blue for In progress, and green for Complete. Keep the same status-to-color mapping throughout the chart.

  5. Add a simple key and check the timeline

    Add a small legend using colored squares and labels, or place a concise key beside the chart. Excel’s automatic legend may show a single duration series rather than your individual task statuses.

    Check the date axis, task order, and bar lengths. If a task starts on May 6 and lasts five days, its bar should begin at the correct date and span five days.

Keep in mind: manually colored bars won’t change color when you edit a status cell. If you want the chart to update automatically, use status-specific duration series instead.

Choose Colors That Make Project Status Easy to Read

A useful color scheme helps you spot project conditions quickly. For instance, a manager scanning a weekly plan can notice delayed work in red without reading every task label.

Pick colors with clear contrast and give each one a single meaning. A simple scheme might use gray for Planned, blue for In progress, green for Complete, and red for At risk.

But here’s the truth: color alone shouldn’t carry the whole message. Keep the status name in your worksheet, and include a visible chart key so viewers understand what each color means.

Avoid using several similar shades for different statuses. If two colors are hard to tell apart on screen, they’ll be even harder to distinguish in a printed chart or for someone with color-vision differences.

Make Gantt Chart Colors Update Automatically

For automatic color changes, divide the duration into separate status series. A task contributes its duration only to the series matching its current status; the other series show zero.

Add helper columns named Planned, In progress, and Complete. If Duration is in column C and Status is in column D, enter this formula in the Planned column on row 2:

=IF($D2="Planned",$C2,0)

For the In progress column, use =IF($D2="In progress",$C2,0). For Complete, use =IF($D2="Complete",$C2,0). Copy each formula down the task rows.

Build a stacked bar chart with Task, Start Date, and the three helper columns. Set the Start Date series to No fill, then assign one color to each status series.

Here's why this works: when you change a task’s status, its duration moves to the matching helper series. Excel then displays that part of the chart in the status color you chose.

Use a stacked bar chart, not a clustered bar chart, for this arrangement. In a clustered chart, status bars may sit beside one another instead of forming one continuous task bar.

Keep the Chart Readable as the Project Changes

As tasks shift, a chart can become crowded or misleading. A two-week schedule with ten tasks is easy to scan; the same view with tiny labels and dozens of colors is not.

Use a manageable number of status categories, and shorten task names when they wrap across several lines. If a project has many tasks, group related work into phases or create separate charts for major workstreams.

Let me explain: dates and durations must agree with your planning convention. If your team counts working days, a five-day task might cover a Monday-to-Friday workweek even though its calendar span touches seven dates.

Update the chart when you revise start dates or durations. A quick review before a status meeting can catch bars that extend beyond the visible timeline or colors that no longer match the status key.

Troubleshoot Common Excel Gantt Chart Problems

If bars appear at the wrong end of the timeline, check that Start Date values are recognized as dates. Text that merely looks like a date may not plot correctly on the horizontal axis.

If bars begin at zero or the timeline looks unusually long, confirm the chart includes the Start Date series and that it is formatted with No fill. That hidden series creates the offset for each task.

If a color change affects every bar, you selected the data series rather than an individual data point. Click once to select the series, then click the specific bar again before applying a fill.

If automatic colors seem inconsistent, check the status text for extra spaces or alternate wording. “In progress” and “In Progress ” can behave like different entries in formulas and make a task appear without its expected color.

A Project Coordination Solution: ONES.com

Value proposition: ONES.com brings project management and knowledge management together in a unified platform powered by ONES Assistant. ONES Project and ONES Wiki are sold separately, so teams can choose the capabilities that fit their needs.

ONES.com product screenshot

Excel can work well for a small Gantt chart or a quick planning exercise. When teams need to coordinate dependencies, approvals, project updates, and shared guidance, they may want a dedicated project workflow alongside their charting process.

Core capabilities

ONES Project is a project management option and a Jira alternative. ONES Wiki is a knowledge management option and a Confluence alternative. The two products are separate, allowing teams to select project tracking, knowledge management, or both.

Application scenarios

Product team planning a release: A team can coordinate sprint work and task progress in ONES Project, while maintaining release guidance in ONES Wiki if it also needs a shared knowledge space.

Organization with restricted hosting requirements: A team that needs on-premise or air-gapped deployment can assess ONES Project’s self-hosted options while retaining feature parity with the cloud version.

ONES.com doesn’t replace the five-step Excel method for a simple chart. It offers a broader coordination environment when teams need structured project workflows, reporting, or knowledge management alongside their planning.

Common Challenges and Practical Fixes

Every task has the same color

Problem: Changing the fill on one bar recolors the entire series. Fix: Select the individual data point by clicking its bar a second time, or use separate status series for automatic coloring.

The chart colors don’t reflect current status

Problem: A task changes from Planned to In progress, but its manual color stays gray. Fix: Use helper columns and a stacked bar chart so each status controls its own series.

The chart is difficult to scan

Problem: Too many colors or long task labels make the schedule feel crowded. Fix: Limit the status palette, shorten labels, and split large projects into phase-based charts.

Start dates or bar lengths look wrong

Problem: Tasks appear at unexpected dates or span the wrong number of days. Fix: Check that start dates are actual Excel dates, durations are numeric, and the hidden Start Date series remains in the chart.

Frequently Asked Questions

Can Excel change a Gantt bar color when I update a task status?

Yes. Create a separate duration helper column for each status, using an IF formula to place the task’s duration in the matching column and zero in the others. Add those columns as series in a stacked bar chart, then assign a color to each series. When you change a status cell, the task’s bar moves to the corresponding color series.

Why does Excel recolor every bar when I change one?

You likely selected the full duration series rather than one task’s data point. Click a bar once to select the series, then click that same bar again to isolate the point. Open the formatting pane and change its fill. If you need colors to update with status changes, use separate status series instead of manually formatting each point.

How do I show a useful legend for manually colored task bars?

Excel may show only one Duration entry in the default legend because all task bars belong to that series. Add a small key beside the chart with colored squares and status labels, such as blue for In progress and green for Complete. Keep the labels and colors consistent with the status values in your task list.

Can I use different colors for priority and status?

You can, but encoding both priority and status with bar color can confuse readers. A clearer option is to use bar color for status and another visual cue, such as a priority column, marker, or label. For example, keep Complete tasks green while marking high-priority work with a star in its task name or a separate chart annotation.

Conclusion

To color-code a Gantt chart in Excel, build a stacked bar chart, hide the Start Date series, and apply a consistent color to each task bar. That five-step method is quick for a small plan, while helper columns make status colors update automatically.

Keep the palette simple, check your dates, and show a clear key. When a chart becomes hard to maintain, a structured project workflow can help you keep tasks and team coordination visible as plans change.