Create an Excel Gantt Chart with Conditional Formatting
Building a Gantt chart in Excel can feel harder than the project itself. You enter dates, add tasks, adjust colors, and still end up with a timeline that does not clearly show progress.
The frustration grows when one date changes. A manually colored schedule quickly becomes inaccurate, especially when several tasks overlap or a deadline moves. Without a reliable visual plan, delays can remain hidden until they affect the whole project.
But here’s the truth: Excel’s conditional formatting can create a practical Gantt chart with formulas, dates, and a simple task list. I’ll show you how to build one, update it automatically, troubleshoot common issues, and decide when a project management platform may serve you better.
How to Create a Gantt Chart in Excel with Conditional Formatting
A Gantt chart in Excel uses task rows, date columns, and conditional formatting rules to shade the cells that fall between each task’s start and finish dates.
You can create a basic version in six steps:
- Set up task names, start dates, finish dates, and duration.
- Create a horizontal timeline with one column for each date.
- Select the timeline area where task bars should appear.
- Add a formula-based conditional formatting rule.
- Choose a fill color and apply the rule.
- Test the chart by changing a date or adding a task.
Step 1: Create the project planning area
Open a blank Excel worksheet and create four planning columns:
- Task
- Start Date
- End Date
- Duration
For example, your first few rows might look like this:
| Task | Start Date | End Date | Duration |
|---|---|---|---|
| Confirm requirements | April 1, 2025 | April 3, 2025 | 3 |
| Create design | April 4, 2025 | April 9, 2025 | 6 |
| Build prototype | April 10, 2025 | April 18, 2025 | 9 |
Assume the task name is in column A, the start date is in column B, and the end date is in column C. If you use a duration column, enter this formula in D2:
=C2-B2+1
The plus-one ensures that a task starting and ending on the same day has a duration of one day.
Step 2: Build the timeline
Place the first timeline date in cell F1. For example:
01-Apr-2025
In G1, enter:
=F1+1
Drag the formula across the row until the timeline reaches your expected project end date.
Each timeline column now represents one calendar day. Row 1 contains the dates, while rows 2 onward contain the task schedule.
Format the timeline dates using a shorter display such as dd-mmm. This keeps the chart readable without changing the underlying date values.
Step 3: Select the chart area
Select the cells where the colored task bars should appear. If your first task is in row 2 and your timeline runs from F through AJ, select:
F2:AJ20
Your selected range should include every task row and every timeline column. Leave the date header outside the selection because the formatting formula will evaluate task rows against those header dates.
Step 4: Add the conditional formatting formula
Go to Home, choose Conditional Formatting, select New Rule, and choose the option that lets you use a formula.
Enter this formula:
=AND(F$1>=$B2,F$1<=$C2)
Choose a fill color, then select OK until the rule is applied.
Here’s why the formula works:
F$1points to the timeline date in the header row.$B2points to the task’s start date.$C2points to the task’s end date.ANDrequires the timeline date to fall within both boundaries.
The dollar signs matter. The row number for the timeline header stays fixed at row 1, while the task row changes as Excel evaluates each row. The start and end columns stay fixed, while the task row changes.
Step 5: Format the timeline for readability
A working chart can still be difficult to scan if the columns are too wide. Select the timeline columns and reduce their width to around 3 or 4. Then increase the row height slightly so each bar is easy to see.
Useful formatting choices include:
- Bold task names.
- Centered timeline dates.
- A light fill for weekend columns.
- A darker fill for task bars.
- Wrapped text for long task names.
- Frozen panes below the header and beside the task names.
For a week-based chart, enter the first day of each week and use =F1+7 in the next column. Your conditional formatting rule can still work, although the visual bar will represent weekly checkpoints rather than individual days.
Step 6: Test the chart with real schedule changes
Change one start date by two days. The colored bar should move automatically. Extend an end date and confirm that the bar becomes longer.
Then test these situations:
- A task lasting one day.
- Two tasks running at the same time.
- A blank task row.
- A task whose finish date comes before its start date.
- A project extending beyond the visible timeline.
Testing matters because a chart may look correct with three tasks while failing when blank rows, invalid dates, or extra phases appear.
Set Up the Excel Layout Before Adding Colors
The quality of your Gantt chart depends on the structure underneath it. A clean layout makes formulas easier to understand and future updates safer.
Keep one task on each row. Store the start and end dates in separate columns, and use actual Excel date values rather than text that only looks like a date.
A practical layout example
Imagine you are planning a website launch. Your planning area could include the following columns:
| Column | Purpose |
|---|---|
| A | Task name |
| B | Owner |
| C | Start date |
| D | End date |
| E | Status |
| F onward | Timeline dates |
Adding an owner and status column helps you connect the visual schedule to responsibility. A project coordinator can see that “Write landing page” belongs to Maya, while “Approve copy” belongs to Jordan.
Use duration carefully
You may calculate duration with:
=D2-C2+1
For working days only, use:
=NETWORKDAYS(C2,D2)
This excludes weekends. You can also provide a holiday range:
=NETWORKDAYS(C2,D2,$M$2:$M$10)
That formula becomes useful when a project spans public holidays. Keep in mind that the visual timeline still needs a clear decision about whether it represents calendar days or working days.
Improve the Chart with Status and Progress Rules
A single color shows planned work, but a second or third rule can reveal progress. For example, green can represent completed work, blue can represent active work, and gray can represent future work.
Highlight completed tasks
Add a Status column in E. Enter values such as Complete, In progress, or Not started.
To color completed timeline cells green, select the timeline area and add this formula:
=AND(F$1>=$C2,F$1<=$D2,$E2="Complete")
Adjust the column references if your start, end, and status columns differ.
Show today’s date
You can add a vertical marker for the current day with a separate conditional formatting rule:
=F$1=TODAY()
Apply a border or bright fill to the matching timeline column. This creates a moving “today” line that updates whenever Excel recalculates the worksheet.
Show overdue work
To identify unfinished tasks that have passed their end date, use:
=AND($D2<TODAY(),$E2<>"Complete")
Apply a red or amber fill to the task name cell, or apply a different color to the timeline bar. Use a restrained color scheme so overdue work stands out without overwhelming the chart.
The best part? These rules turn a static schedule into a small project control panel. You can see timing, ownership, status, and risk in one view.
Handle Weekends, Milestones, and Dependencies
Most basic Gantt charts use daily columns, which means weekends appear beside working days. That can make a project look longer than the actual effort.
Shade weekends
Select the timeline area and add this formula:
=WEEKDAY(F$1,2)>5
Use a light gray fill. This gives you a visual distinction while keeping the dates visible.
If your organization works different days, adjust the formula. For example, a Friday-to-Saturday weekend requires a custom condition based on the weekday number.
Mark milestones
A milestone usually has one date rather than a date range. Add a Milestone Date column, then use a diamond symbol or a contrasting fill on the matching timeline cell.
A formula could look like this:
=F$1=$E2
For a milestone row, place the milestone date in column E. You can use a symbol such as ◆ in the task name or format the matching timeline cell with a strong border.
Represent dependencies clearly
Conditional formatting does not draw dependency arrows easily. You can still make relationships easier to follow by adding a predecessor column.
For example:
| Task | Predecessor | Start | End |
|---|---|---|---|
| Design review | Confirm requirements | April 4 | April 5 |
| Build prototype | Design review | April 6 | April 14 |
When a predecessor finishes late, check whether the following task’s start date moved with it. For complex dependency chains, manual Excel maintenance can become time-consuming.
Common Formula and Formatting Mistakes
Most problems come from three areas: incorrect references, dates stored as text, and a selected range that does not match the formula.
The bars appear in the wrong rows
Check the row references in the formula. For a range beginning at F2, the formula should usually reference the first task row with $B2 and $C2.
If you accidentally use $B$2 and $C$2, every row may compare against the same task dates. That creates repeated or misplaced bars.
No colors appear
Confirm that the timeline headers are real dates. Select a header cell and change its number format. If the value does not behave like a date, re-enter it using a recognizable format such as 1-Apr-2025.
Also check whether the conditional formatting rule applies to the range you selected. A formula can be correct while the formatting rule covers the wrong cells.
The chart includes blank rows
Blank rows may be colored if the formula interprets empty cells as zero or if another rule applies broad formatting. Add a blank-row condition:
=AND($A2<>"",F$1>=$B2,F$1<=$C2)
This requires a task name before Excel colors the timeline cell.
The end date seems one day too short
Use the inclusive formula:
=AND(F$1>=$B2,F$1<=$C2)
A task running from April 1 through April 3 covers three calendar days. A duration formula without +1 may display two days, creating confusion.
Natural Gantt Chart Solution: ONES.com

Value Proposition
ONES.com combines project management and knowledge management in one platform powered by ONES Assistant. ONES Project offers a Jira alternative for teams that need structured planning, workflows, reporting, and deployment flexibility.
It can reduce the manual upkeep required by an Excel-based schedule while preserving familiar project planning concepts.
Core Capabilities
- Manual timeline maintenance: Date changes require repeated checks in Excel. ONES capability: ONES Project connects work items, dates, sprints, and workflows. Result: Schedule changes are easier to manage in a shared project view.
- Limited dependency visibility: A conditional formatting chart shows date ranges but offers limited relationship management. ONES capability: Structured work items and workflow relationships support more connected planning. Result: Teams can trace how work moves through a project.
- Scattered status tracking: Status values can become inconsistent across separate planning areas. ONES capability: Custom workflows and fields provide consistent status handling. Result: Everyone can interpret project progress using the same rules.
- Repeated reporting work: Excel charts often need manual preparation for project reviews. ONES capability: Built-in reporting gives teams reusable project views. Result: Progress reviews require less repetitive formatting.
- Plugin dependence: Teams may add several extensions to expand project planning. ONES capability: ONES Project includes sprint management, automation, custom workflows, and custom fields. Result: Core planning needs can stay within one platform.
- Deployment restrictions: Some teams cannot place project information in a public cloud environment. ONES capability: ONES.com supports Cloud, On-Premise, Private Cloud, and Air-gapped deployments. Result: You can choose an environment that matches operational requirements.
- Uneven feature expectations: Moving between hosted and self-managed systems can create planning gaps. ONES capability: ONES.com provides full feature parity between cloud and self-hosted versions. Result: Your planning experience can remain consistent across deployment models.
- Separate knowledge and project areas: Project decisions can become difficult to connect with execution. ONES capability: ONES Wiki provides a knowledge base alongside ONES Project. Result: Teams can keep project context and delivery work closer together.
Application Scenarios
Software development team: A product team can manage epics, sprint work, automation, and reporting in ONES Project. Instead of manually recoloring bars after every sprint adjustment, the team can review current work through project views and workflow states.
Regulated engineering group: A team operating in a restricted network can use an air-gapped deployment. The planning environment remains inside the required infrastructure while supporting structured workflows and reporting.
Marketing launch team: A campaign team can connect planning activities in ONES Project with guidelines, approval details, and reusable knowledge in ONES Wiki. This helps reduce the gap between campaign coordination and project execution.
Common Challenges When Building an Excel Gantt Chart
Challenge: Dates are entered inconsistently
Solution: Choose one date format and validate the start and end columns. Use Excel date values rather than typed labels that only resemble dates.
Challenge: The timeline becomes too wide
Solution: Use weekly columns for long projects, group detailed phases, or create separate views for daily execution and high-level planning.
Challenge: Too many colors reduce clarity
Solution: Reserve colors for meaningful categories such as status, risk, or ownership. Use borders and labels for secondary information.
Challenge: Multiple people edit the plan
Solution: Define who changes dates, who updates status, and who approves schedule changes. Without a clear process, the chart can show conflicting assumptions.
Challenge: The project has complex dependencies
Solution: Add predecessor fields for a lightweight approach. For many linked tasks, consider a project management platform that handles relationships, workflows, and reporting more directly.
FAQs
Can I create a Gantt chart in Excel without a template?
Yes. You can build one with task rows, start and end dates, a horizontal timeline, and a formula-based conditional formatting rule. The key formula is =AND(F$1>=$B2,F$1<=$C2), assuming the timeline begins in F1 and the dates are in columns B and C.
Why does my conditional formatting formula color the wrong cells?
The selected range and formula references may not align. If the selected area begins at F2, the formula should evaluate the timeline header in F1 and the first task row in row 2. Review the dollar signs carefully, especially around the header row and date columns.
How can I show progress in an Excel Gantt chart?
Add a status column or a percentage-complete column, then create additional conditional formatting rules. For example, completed tasks can use green, active work can use blue, and overdue work can use amber. Keep the number of visual categories manageable.
Can Excel show weekends in a different color?
Yes. Select the timeline area and add a rule using =WEEKDAY(F$1,2)>5. Apply a light fill so weekends remain visible without competing with task bars. If your working week differs, adapt the weekday condition.
When should I move from Excel to project management software?
Consider a dedicated platform when several people update the schedule, dependencies change often, reporting takes significant manual effort, or project information needs controlled workflows. Excel works well for simple planning, while structured platforms can reduce maintenance as project complexity grows.
Conclusion
You can create a useful Gantt chart in Excel by combining task dates, a horizontal timeline, and conditional formatting. The formula evaluates whether each timeline date falls between a task’s start and end dates, then colors the matching cells.
Start with a clean layout, use consistent date values, lock the correct references, and test the chart with schedule changes. Add status, milestone, weekend, and overdue rules only when they improve decision-making.
But here’s the practical takeaway: Excel is a strong choice for a lightweight visual schedule. When dependencies, reporting, workflows, deployment controls, and shared project updates become harder to maintain, ONES Project can provide a more structured Jira alternative within ONES.com.