Columns for task, start, duration in workdays and end. One row per task, milestones with a duration of 0.
How to Make a Gantt Chart in Excel (Free Template)
Last updated:
Set up a table with task, start, duration and end, and calculate the end with WORKDAY so weekends and holidays don't count. Next to it, add a row of dates. A conditional formatting rule colors every cell whose date falls between the start and the end of its row. That gives you the bars without a chart.
Contents
Step by step
List the tasks
Calculate the end
In the End column, enter =WORKDAY(F6,G6-1,Holidays). The start day is the first workday, so subtract 1 from the duration.
Build the timeline
To the right of the list, put the first date in the header row and =M5+1 in every cell after it. Make the columns narrow.
Color the bars
Select the grid, go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format, enter =AND(M$5>=$F6,M$5<=$H6) and pick a fill color.
Add markers
Add rules for weekends and holidays, today, milestones and the finished part, then check the order of the rules.
Adjust the view
Switch long projects to a weekly scale, freeze panes, and print in landscape, one page wide.
The method at a glance
| Step | What you do | Where or which formula |
|---|---|---|
| 1 | Task list with start and duration | columns F (start) and G (days) |
| 2 | End date without weekends and holidays | =WORKDAY(F6,G6-1,Holidays) |
| 3 | Row of dates as the timeline | first date in M5, =M5+1 in N5, fill right |
| 4 | Color the bars | conditional formatting with =AND(M$5>=$F6,M$5<=$H6) |
| 5 | Weekends, today, milestones, progress | one more rule each |
| 6 | Days or weeks | switch in F2 |
The finished template with a sample project (a website relaunch) is free through the form on this page. Every cell reference in this guide matches it, so you can follow along in the file.
What is a Gantt chart?
A Gantt chart shows a project as a list of tasks with a timeline next to it. Each task is a horizontal bar from its start to its end. You see at a glance what runs in parallel, what comes next and where the project stands today. Milestones such as "Scope signed off" have no duration and usually show as a diamond.
Excel has no built-in Gantt chart type. You build one in one of two ways, either as a grid of cells colored by conditional formatting or as a stacked bar chart you reshape.
Which method should you use?
| Conditional formatting grid | Stacked bar chart | Project software | |
|---|---|---|---|
| Add a task | fill in a row | extend the chart's data range | create the task |
| Weekends, holidays, today | one rule each | only with extra series | built in |
| Progress in % | one rule | a third data series | built in |
| Dependencies that move along | by formula, easy | by formula, easy | built in |
| Works in Excel, LibreOffice and Google Sheets | yes, cell formulas only | dialogs differ | separate tool |
| Best for | up to about 50 tasks, teams without project software | one graphic for a report or slide | large projects, many people |
For most project plans in Excel, the grid is the better choice. That is why this guide focuses on it and why the template works this way. The bar chart follows further down in short form.
Method 1: a conditional formatting grid
1. The task list. Put a header in row 5 with No., Task, Phase, Owner, Type, Start, Days, End, % done, Status and Predecessor. From row 6, enter one task per row. Only Start (column F) and Days (column G) drive the chart. The rest helps people read it. If you are new to building lists, start with how to create a spreadsheet.
2. The timeline. From column M, row 5 holds one date per column. Put the first day in M5, for example the Monday of the start week. In N5, enter =M5+1 and fill it right across about 100 columns. Set the column width to about 3 and the number format to mm/dd, rotated if you like.
3. The bar rule. Select the grid from M6 to the last task and the last column. Go to Home > Conditional Formatting > New Rule and choose Use a formula to determine which cells to format. Enter
=AND(M$5>=$F6,M$5<=$H6)
Click Format and pick a fill color. For each cell the formula asks whether the date of this column lies between the start and the end of this row. If it does, the cell gets the color.
The dollar signs do the real work. M$5 locks row 5 while the column moves. $F6 and $H6 lock columns F and H while the row moves. Without these mixed references, every cell compares itself with the wrong date.
Calculate end dates with WORKDAY and holidays
=F6+G6 counts Saturdays, Sundays and holidays too. WORKDAY skips them.
=WORKDAY(F6,G6-1,Holidays)
- First argument is the start date.
- Second argument is how many workdays to move forward. WORKDAY starts counting the day after the start, so a 5-day task that starts on Monday ends on Friday. That is why you use
G6-1. - Third argument is a range of days off. In the template it is called Holidays and points to the sheet of the same name.
The template uses a slightly longer version so empty rows stay empty and milestones with 0 days end on their start date.
=IF(OR(F6="",G6=""),"",IF(G6<=1,F6,WORKDAY(F6,G6-1,Holidays)))
The holiday range may only contain dates or blank cells. The Holidays sheet in the template calculates the US federal holidays for the start year and the next year, with the observed date when a holiday falls on a weekend. In the UK, Canada or anywhere else, delete them and type your own dates in the empty rows. Company closures go there too. If you work on Saturdays, WORKDAY.INTL lets you choose which days count as the weekend.
To count the workdays between two dates, use NETWORKDAYS with the same holiday range. Full holiday lists for the UK, US and Canada for any year are in the Excel calendar template.
Weekends, today and milestones
Each marker is its own rule on the same grid. Create them like the bar rule.
| Marker | Formula | Format |
|---|---|---|
| Weekend | =WEEKDAY(M$5,2)>5 | gray |
| Holiday | =COUNTIF(Holidays,M$5)>0 | gray |
| Today | =M$5=TODAY() | colored border |
| Milestone | =AND($E6="Milestone",M$5=$F6) | strong fill |
WEEKDAY with 2 as the second argument counts Monday as 1 and Sunday as 7, so 6 and 7 are the weekend. For the diamond, the template puts a small formula in every grid cell that shows ◆ on a milestone date.
Order matters. Under Home > Conditional Formatting > Manage Rules, the rule at the top wins. The template uses today, milestone, weekend and holiday, finished part, planned bar. Because gray comes before the bar, bars visibly pause on days off.
A note for Google Sheets users. A custom formula rule there cannot read other sheets. So the template checks weekends and holidays in a hidden helper row (row 3) and the rule reads only that row. That keeps the file working the same in Excel, LibreOffice and Google Sheets.
Show progress in percent
Enter how much of a task is done in column I, for example 60%. A second rule colors the finished part of the bar darker.
=AND($I6>0,M$5>=$F6,M$5<=$F6+($H6-$F6)*$I6)
It has to sit above the bar rule. The formula works in calendar days, so for tasks that span a weekend the dark part is a close approximation.
Daily or weekly view
For projects longer than three months, a daily view gets too wide. The template has a drop-down in F2 with Day and Week. The date row then steps by 7.
=M5+IF($F$2="Week",7,1)
The bar rule also needs a week of slack, so a task from Wednesday to Friday still shows in its week.
=AND(M$5+IF($F$2="Week",6,0)>=$F6,M$5<=$H6)
Above the date row, =WEEKNUM(M5,21) shows the ISO week number.
Method 2: a stacked bar chart
If you only need a graphic for a slide, a chart works too.
- Select Task, Start and the duration in calendar days (
=H6-F6+1). - Go to Insert > Recommended Charts and pick Stacked Bar.
- Click the first series (Start) and set Format > Shape Fill > No Fill. Each bar now floats at its start date.
- Right-click the task axis, choose Format Axis, and under Axis position tick Categories in reverse order so the first task is at the top.
- Set the minimum of the date axis to the project start, otherwise it begins in 1900.
Every new task means extending the data range. Weekends, holidays and today don't show on their own. For more on axes and chart types, see how to make a chart in Excel.
Common mistakes
| Mistake | Cause | Fix |
|---|---|---|
| No bar appears | start date or date row is text | retype the date, check left-aligned values |
| Bar in the wrong row or column | dollar signs in the wrong place | M$5, $F6, $H6 as above |
| End one day too late | G6 instead of G6-1 | the start day counts |
| Weekends counted | =F6+G6 instead of WORKDAY | WORKDAY with a holiday range |
| #VALUE! in the end date | holiday range contains text | dates or blank cells only |
| Today marker stuck | calculation set to manual | File > Options > Formulas > Automatic |
| Bars hide weekends or progress | rules in the wrong order | Manage Rules, check the order |
For #VALUE! and other messages, see the guide to Excel errors.
When Excel is no longer enough
An Excel plan works well while one person maintains it and it fits on one page. With more than about 50 tasks, many dependencies, resource planning or several people editing at once, project software is more practical. Until then, Excel has one clear advantage. Everyone can open the file.
What next?
The project plan uses date formulas, mixed references and conditional formatting. You can practice exactly these skills in our Excel exercises with instant feedback. The Excel test shows where you stand. More templates are in the resources.
Sources
Checked in November 2026 with Excel for Microsoft 365 on Windows.
- Microsoft: WORKDAY function
- Microsoft: NETWORKDAYS function
- Microsoft: TODAY function
- Microsoft: Use conditional formatting to highlight information
- Microsoft: Present your data in a Gantt chart in Excel

Gantt chart template
Enter tasks, start dates and durations, and the plan colors the timeline itself and skips weekends and holidays.
- Excel file (.xlsx)
- free by email
- License: free to use, also at work and in schools, with attribution; no resale
Frequently asked questions
Does Excel have a Gantt chart template?
Excel has no built-in Gantt chart type. Our template is free. Enter tasks, start dates and durations, and the timeline colors itself and skips weekends and holidays. It runs without macros in Excel, LibreOffice and Google Sheets.
How do I calculate an end date without weekends and holidays?
Use =WORKDAY(start,days-1,Holidays). The start day is the first workday, so subtract 1. Holidays is a range that holds your days off as dates.
How do I create a Gantt chart in Excel with dependencies?
Make the start of a task a formula that points to the workday after its predecessor ends, for example =WORKDAY(H6,1,Holidays). When one task takes longer, every task after it moves along.
How do I show weeks or months in an Excel Gantt chart?
Let the date row step by 7 days and show =WEEKNUM(M5,21) above it. In the template, just set F2 to Week. For months, step by about 30 days or use a weekly view and label the first week of each month.
Can I make a Gantt chart in Google Sheets?
Yes, with the same grid method and custom formula rules. Rules in Google Sheets cannot read other sheets, so keep helper values such as holidays on the same sheet. The template already does that.
Learn Excel with no prior knowledge
You type every formula yourself, you're allowed to make mistakes and you get an explanation right away. Lesson 1 is free.
Free template for this: Gantt chart template
Related
- Excel calendar template 2027Template
- Create a spreadsheet in ExcelGuide
- Make a chart in ExcelGuide
- Excel error values and how to fix themGuide
- Excel formulas cheat sheetin progress