A Gantt chart turns a list of tasks and dates into a timeline you can read at a glance: what happens when, what overlaps, and what's running late. You don't need project management software to make one. Google Sheets and Excel can both do it with tools you already have.
This guide shows two methods. The stacked bar chart method creates a classic chart. The conditional formatting method colors cells in a grid and is easier to update. Pick whichever suits your project.
Step 1: Set up your task table
Both methods start with the same table. Put your project tasks in rows with these columns:
| A: Task | B: Start date | C: End date | D: Duration (days) | E: Start offset |
|---|---|---|---|---|
| Research | Nov 3 | Nov 7 | 5 | 0 |
| Design | Nov 6 | Nov 14 | 9 | 3 |
| Build | Nov 12 | Nov 26 | 15 | 9 |
| Test | Nov 24 | Dec 1 | 8 | 21 |
| Launch | Dec 2 | Dec 2 | 1 | 29 |
-
Duration in D2:
=C2-B2+1 -
Start offset in E2 (days from the project start):
=B2-$B$2
Copy both formulas down. Make sure columns B and C are formatted as dates, and D and E as plain numbers.
Method 1: Gantt chart with a stacked bar chart
In Google Sheets
- Select the Task column, then hold Ctrl (Cmd on Mac) and select the Start offset and Duration columns, including headers.
- Go to Insert → Chart.
- In the Chart editor, set Chart type to Stacked bar chart.
- Make sure the series order is Start offset first, then Duration. If it isn't, reorder your columns so Start offset comes before Duration.
- Go to Customize → Series, choose the Start offset series and set its fill opacity to 0%. The offset bars disappear and the duration bars float in the right place.
- Give the chart a title, remove the legend, and you have a Gantt chart.
In Excel
- Select the Task, Start offset and Duration columns.
- Go to Insert → Bar Chart → Stacked Bar.
- Click the Start offset bars, right-click and choose Format Data Series. Set Fill to No fill and Border to No line.
- Click the vertical axis with your task names, open Format Axis and tick Categories in reverse order, so the first task appears at the top.
- Remove the legend and adjust the bar gap width if you want thicker bars.
If you'd rather see real dates on the horizontal axis in Excel, chart the Start date column instead of the offset and set the axis minimum to your project start date.
Method 2: Gantt chart with conditional formatting
This method builds the timeline in the cells themselves. It's easier to read in a shared sheet and updates the moment you change a date.
- Keep the task table in columns A to C.
- In the header row, starting in column F, enter your project dates: the first date in F1, then
=F1+1in G1, copied across for as many days as the project needs. Format these as short dates like "3 Nov" and narrow the columns. - Select the grid area, for example
F2:AM20. - Add a conditional formatting rule with a custom formula:
- Google Sheets: Format → Conditional formatting → Custom formula is
- Excel: Home → Conditional Formatting → New Rule → Use a formula to determine which cells to format
- Enter
=AND(F$1>=$B2, F$1<=$C2)and choose a fill color.
Every cell where the date falls between a task's start and end date fills in, and you get a bar for each task. Add a second rule such as =F$1=TODAY() with a different color to highlight today's column.
Tips for a Gantt chart that stays useful
- Break work into tasks of a few days to two weeks. Very long bars hide what's actually happening.
- Group tasks into phases. Planning, build, test and launch make the chart easier to scan.
- Add an owner and a status column. A timeline without owners tells you what's late but not who to ask.
- Mark milestones. One-day tasks such as "Client sign-off" show the key moments.
- Update it weekly. A Gantt chart is only as good as its dates.
Common problems and fixes
- Bars start at the wrong place. Check that the offset column is calculated from the same project start date for every row.
- Dates show as numbers. Format the date columns as dates; spreadsheets store dates as numbers underneath.
- Tasks appear upside down in Excel. Use Categories in reverse order on the vertical axis.
-
The conditional formatting fills the wrong cells. Check the dollar signs:
F$1locks the date row,$B2and$C2lock the date columns.
Skip the setup with a Gantt chart template
Building a chart by hand works well for a small project. For anything with phases, a team and changing dates, a template saves the setup and the maintenance.
Our Gantt Chart template gives you a visual project timeline that updates automatically. You can divide a project into up to 15 phases, assign tasks to yourself or unlimited team members, set custom workdays and holidays, and see instant status updates, countdowns and task status breakdowns. It works in Microsoft Excel and Google Sheets.
If you manage several projects, All-in-One Project Management includes a Gantt chart timeline alongside a Kanban board, an Eisenhower matrix and calendars, all fed from one task database. To decide which tasks matter most before you schedule them, see our guide to the Eisenhower Matrix.
Frequently asked questions
Does Google Sheets have a Gantt chart?
There's no chart type called Gantt, but a stacked bar chart with a hidden first series works as one. Google Sheets also has a Timeline view, which can show tasks with start and end dates.
Does Excel have a Gantt chart template?
Excel offers some project timeline templates, and you can build your own with a stacked bar chart as shown above.
Which method is better?
The stacked bar chart looks more like a classic Gantt chart and is good for reports. Conditional formatting is easier to edit and share as a working document.
Can I show dependencies between tasks?
Not automatically with these basic methods. Add a "Depends on" column and plan start dates around it, or use a template built for project timelines.


Share:
Small Business Tax Deductions: A List and How to Track Them
What Is a Gantt Chart? Definition, Examples and When to Use One