How to Make a Gantt Chart in Excel or Google Sheets

Step-by-step instructions for building a Gantt chart in a spreadsheet two ways, with the columns to set up, a worked example, formulas, and advice on when to move to a dedicated tool.

Download PDF
  • PDF
  • 5 pages
  • 38 KB
  • Fillable
  • Free
  • No sign-up

Independent resource. Not affiliated with, endorsed by, or sponsored by Microsoft Corporation or Google LLC. Microsoft Excel is a trademark of Microsoft Corporation. Google Sheets is a trademark of Google LLC.

What is in the PDF

The full content of the file, so you can read it before you download.

A Gantt chart shows tasks as horizontal bars on a calendar, so anyone can see what happens when and what overlaps. For a small project, a spreadsheet is enough. This guide shows two ways to build one that work in both Excel and Google Sheets.

Menus and button names change between versions, so this guide describes the feature to look for instead of exact click paths. If you cannot find one, search your app's help for the term in bold.

Which method to use

FeatureMethod 1: stacked bar chartMethod 2: date grid
Looks likeA chart objectColored cells in the sheet
Best forA picture for a slide or reportA working plan you update weekly
Updates when dates changeYesYes
Easy to add rowsFairGood
Shows progress and todayWith extra workWith one more rule each

If you are unsure, use Method 2. It is quicker to maintain.

Set up the task table

Both methods start from the same table. Put the project start date in a cell of its own, for example H1.

ColumnWhat goes in itFormula, if any
TaskA short name, one row per taskNone
StartThe start dateTyped, or linked to another task
EndThe finish dateTyped, or Start plus duration
Start dayDays from project start=Start - $H$1
LengthCalendar days the bar covers=End - Start + 1

Notes on the formulas:

  • Format Start and End as dates, and Start day and Length as plain numbers.
  • The + 1 in Length counts both the first and last day. A task that starts and ends on the same date is 1 day long.
  • If you prefer to enter a duration in working days, both apps have a WORKDAY function. =WORKDAY(Start, Days - 1) gives the end date, skipping weekends, as long as Start is itself a working day.
  • The formulas here separate arguments with commas. If your app is set to a region that uses semicolons, type semicolons in place of the commas.

Worked example

A small team is launching a customer portal. The project starts on Monday, March 1, 2027.

TaskStartEndStart dayLength
RequirementsMar 1Mar 505
DesignMar 8Mar 17710
BuildMar 18Mar 311714
TestApr 1Apr 7317
Go-liveApr 8Apr 8381

Check one row by hand: Design starts on March 8, which is 7 days after March 1, so Start day is 7. It runs from March 8 to March 17, which is 17 - 8 + 1 = 10 days.

Method 1: stacked bar chart

The idea: each task gets a bar made of two stacked parts. The first part (Start day) is made invisible. The second part (Length) is what you see.

  1. Select the Task, Start day, and Length columns, including the headers. If they are not next to each other, hold the multi-select key while you drag, or copy them to a helper area.
  2. Insert a chart and choose the stacked bar type. You want horizontal bars, not vertical columns.
  3. Check that the chart has two series, Start day and Length, with task names on the vertical axis. If the app has guessed differently, open the chart's data settings and correct it.
  4. Select the Start day series and set its fill to none, or to the background color. The visible bars now float at the right position.
  5. Tasks probably run from bottom to top. Open the vertical axis options and turn on reverse order so the first task is at the top.
  6. Set the horizontal axis minimum to 0, and the maximum to the last task's Start day plus its Length.
  7. Remove the legend, add a title, and thin out the gridlines.

With the example data, the Design bar starts at 7 and ends at 17 on the horizontal axis, and the Build bar begins where Design stops.

Showing dates on the axis: the axis shows day numbers, not dates. The simplest fix is to title the axis "Days from March 1". If you need real dates, chart the Start date itself in place of Start day, and set the axis minimum to the project start date. Spreadsheets store dates as numbers, so the axis accepts them, but each app handles the settings differently.

Method 2: conditional formatting on a date grid

The idea: put dates across the top of the sheet, and let a rule color every cell whose date falls between a task's start and end.

Assume this layout: Task in column A, Start in B, End in C, percent complete in D, and the first task in row 2. The date grid begins in column F. This layout does not need the Start day and Length columns or a separate start date cell.

  1. In F1, enter the project start date. In G1, enter =F1+1 and fill right for as many days as the project runs. Format the row to show a short date, and narrow the columns.
  2. Select the whole grid area, from F2 to the last date column and last task row.
  3. Open conditional formatting and add a rule that uses a custom formula.
  4. Enter this formula, written for the top-left cell of the selection:
=AND(F$1>=$B2, F$1<=$C2)
  1. Choose a fill color and save the rule. Every cell between a task's start and end dates turns that color.

The dollar signs matter. F$1 locks the date row and lets the column move. $B2 and $C2 lock the date columns and let the row move.

A weekly grid for longer projects. One column per day gets wide fast. Enter week-start dates in row 1 (=F1+7), and use this rule, which colors a week if the task touches any day in it:

=AND(F$1<=$C2, F$1+6>=$B2)

The other rules in this guide (today, progress, weekends, and milestones) are written for a daily grid.

A today marker. Add a second rule on the same range with a different color or a border:

=F$1=TODAY()

Progress shading. With percent complete in column D, entered as a percentage, add a rule in a darker color and place it above the main rule in the rule list:

=AND(F$1>=$B2, F$1<=$B2+($C2-$B2+1)*$D2-1)

For a 10-day task at 50 percent, this shades the first 5 days.

Weekends. To gray out weekends, add a rule using the WEEKDAY function on the header date, and place it at the top of the rule list. With WEEKDAY(F$1, 2), Saturday and Sunday return 6 and 7:

=WEEKDAY(F$1, 2)>5

Dependencies

A spreadsheet has no dependency links, but formulas do the job for simple chains.

  • Finish to start: set the next task's Start to the day after its predecessor ends. Use =WORKDAY(C2, 1) to land on the next working day, or =C2+1 for calendar days.
  • Several predecessors: use the latest end date, for example =WORKDAY(MAX(C2, C4), 1).
  • A gap between tasks: add the waiting time in working days, for example a 3-day wait is =WORKDAY(C2, 1 + 3).
  • Record the link. Add a "Depends on" column that names the predecessor row, so the next person can see why a date moves.

In the worked example, Design starts with =WORKDAY(C2, 1). Requirements ends on Friday, March 5, so Design starts on Monday, March 8. Move the Requirements end date and every later task follows.

Keep typed dates and formula dates visibly different, for example with a font color. Overwriting a formula with a typed date breaks the chain without any warning.

Milestones

  • Give a milestone the same start and end date, so it shows as a single cell or a 1-day bar.
  • In Method 2, add a "Type" column and a rule above the others that colors milestone cells differently, for example =AND($E2="M", F$1=$B2).
  • In Method 1, put milestones in a third series with its own color, or mark them in the task name.
  • Name milestones as events that have happened: "Design approved", not "Design approval".

Working faster

Both apps have keyboard shortcuts for the actions you repeat most. The key combinations differ by app and by operating system, so look them up in the keyboard shortcut list in your app's help menu. The ones worth learning:

  • Fill a formula down or to the right
  • Insert and delete rows
  • Enter today's date
  • Copy formatting from one range to another
  • Freeze the header row and task columns so they stay visible as you scroll
  • Group and collapse rows, to fold tasks under a phase

Other time savers: turn the task table into a formatted table or named range so formulas extend to new rows, and keep one sheet for the plan and a copy for each baseline.

When to move to a dedicated tool

A spreadsheet Gantt chart is a drawing of your plan, not a scheduling engine. Consider scheduling software when:

  • The plan passes roughly 50 tasks. This is a rule of thumb, not a limit.
  • You have many dependencies or need other link types, such as start to start.
  • You need the critical path and float calculated for you.
  • You need to level workloads across people.
  • Several people must update the plan at once, with a history of changes.
  • You must compare the current plan to a saved baseline.

Your task list

Plan the rows before you open the spreadsheet.

Project start date: ____

Task or milestoneStartEndDepends onOwner

Build checklist

  • Tasks come from the agreed scope, with nothing missing
  • Every task has a start date, an end date, and an owner
  • Dates are true dates, not text (they change when you change the cell format)
  • Dependent tasks get their start from a formula, not a typed date
  • Milestones are marked and named as events
  • The time scale suits the project: days for weeks of work, weeks for months
  • A today marker shows where you are
  • The header row and task columns are frozen
  • A dated copy is saved as the baseline before work starts
  • The chart prints or exports on one page wide

How to use it

This guide is for small projects: a few dozen tasks, one team, simple dependencies. It teaches the method in general terms that hold for both apps. It does not cover built-in timeline or project features that some versions include, since those change often. Check your own version, because it may save you some of these steps.

  1. List the work first. Fill in the task list page by hand or in your head before you touch the spreadsheet. If you have a work breakdown structure, take the tasks from it.
  2. Build the task table with the columns shown, and rebuild the worked example once to check your formulas give the same numbers.
  3. Pick one method. Use the date grid for a plan you will maintain, and the stacked bar chart when you need a picture for a report.
  4. Add dependencies as formulas, then test them: move one early date and watch the later tasks follow.
  5. Run the build checklist, save a baseline copy, and update the plan on a fixed day each week.

Common mistakes: typing dates as text, overwriting a formula with a fixed date, drawing bars by hand with cell colors so nothing updates, tracking too much detail, and never saving a baseline.

If you want to skip the spreadsheet entirely, Gantt charts require expensive software shows another route, and the Gantt chart prompt drafts a task table from a plain description. To find which tasks drive your end date, use the critical path prompt.

Frequently Asked Questions

Can I make a Gantt chart in Excel?

Yes. Build a task table with start dates and durations, then either insert a stacked bar chart and hide the first series, or set up a date grid and color it with a conditional formatting rule. Both methods update when you change a date.

How do I make a Gantt chart in Google Sheets?

The same two methods work. Use a stacked bar chart built from a start-day column and a length column, or a custom formula rule in conditional formatting across a row of dates. Some versions also include a built-in timeline feature that is worth checking.

What is the conditional formatting formula for a Gantt chart?

With dates in row 1 and start and end dates in columns B and C, use =AND(F$1>=$B2, F$1<=$C2) on the grid, written for its top-left cell. It colors each cell whose date falls within the task's dates.

When should I stop using a spreadsheet for a Gantt chart?

Move to scheduling software when you need the critical path calculated, workloads leveled, baselines compared, or many people editing at once. As a rule of thumb, plans beyond about 50 tasks become hard to maintain in a spreadsheet.

Download PDF: How to Make a Gantt Chart in Excel or Google SheetsFree, no sign-up.