How to Make a Gantt Chart in Excel or Google Sheets

You can make a Gantt chart in Excel or Google Sheets with a task list and conditional formatting, with no paid software. List your tasks with start and end dates, add a row of weekly dates across the top, then apply a formula-based rule that colours each cell where a task is running that week. The bars redraw themselves when dates change.


What a Gantt chart shows

A Gantt chart has two parts: on the left, a list of tasks with owners and dates, and on the right, a grid of time with a coloured bar for each task. Useful extras include milestones (key moments with no duration), critical tasks in a stronger colour and a marker for today. For a project lasting a few months, one column per week fits on a screen. For something short, such as a two-week move, use one column per day.


Set up your schedule

Put your tasks in rows starting from row 5. In this example Start is in column E, End in column G and Type in column H, and the grid begins in column I. Type can be Task, Critical, Buffer or Milestone. Add an 'After' column naming each task's predecessor, because spreadsheets cannot draw dependency arrows easily.


Build the chart, step by step

  1. In I4, enter the Monday of your first week. In J4, type =I4+7 and copy it right for as many weeks as you need.
  2. Format the date cells as dd mmm and make the columns narrow, around 4 or 5 wide.
  3. Select the whole grid where bars could appear, for example I5 to Z20.
  4. Open conditional formatting. In Excel: Home, Conditional Formatting, New Rule, 'Use a formula to determine which cells to format'. In Google Sheets: Format, Conditional formatting, then 'Custom formula is'.
  5. Enter the bar formula, written for the top-left cell of your selection, and choose a fill colour: =AND($E5<>"", $E5<=I$4+6, $G5>=I$4)
  6. Read it as: colour this cell if the task has a start date, starts on or before the last day of this week, and ends on or after the first day of this week.
  7. Add more rules for other types. Put the milestone rule first and the general rule last, so the special colours win.

The dollar signs matter. $E5 locks the column, so every cell in a row looks at that row's start date, and I$4 locks the row, so every cell in a column looks at the date at the top.


Adding a today marker

For a today marker, add a rule to the date row: =AND(TODAY()>=I$4, TODAY()<=I$4+6). The current week then highlights whenever you open the file.


Worked example

A task runs from Monday 2 February to Friday 20 February. The week starting 2 February has I$4+6 = 8 February, which is after the start date, and the end date is later than I$4, so the cell is coloured. The same logic colours the weeks starting 9 and 16 February. The week starting 23 February fails the last test, because the end date is before that Monday, so it stays blank. Change the end date to 27 February and the bar grows by one cell.


Common questions


Why are my bars not appearing?

Check that the dates are real dates, not text, and that the formula refers to the top-left cell of your selection with the correct dollar signs.


Do I need Microsoft Project?

No. For small projects, a spreadsheet is enough, and it is easy to share. Dedicated planning tools help when you need dependencies drawn automatically.


How do I show the critical path?

Mark tasks that set the end date as Critical in your Type column and give them their own colour rule.


Learn the full skill: Project Management for Beginners: Plan, Run and Deliver Projects

More plain-English answers: see all quick answers.

Learn something new every week

One short, practical tip each Thursday, plus news when new courses open. Free, and you can unsubscribe in one click.

We'll never share your email. See our privacy policy.