Skip to content
Foxcolab

How to Make a Gantt Chart in a Spreadsheet

What a Gantt chart shows, the task, start, duration and end formulas that keep dates honest, bars drawn with conditional formatting or a stacked bar chart, dependencies and milestones, and the Gantt chart template in end-to-end encrypted Foxcolab Sheets.

9 min read
On this page14 sections

In short

To make a Gantt chart in a spreadsheet, list each task with an owner, a start date and a duration, and let WORKDAY calculate the end date. Start each later task from the end of the task it depends on. Then add a row of dates across the top and a conditional formatting rule that fills a cell when its date falls between a task's start and end. Foxcolab Sheets has a Gantt chart template, and spreadsheets are end-to-end encrypted.

Key takeaways

  • A Gantt chart has one row per task and a timeline across the top. Each bar runs from a task's start to its end.
  • Type only the first start date. WORKDAY works out every end date, and each later task starts the working day after the task it depends on.
  • One conditional formatting rule draws every bar. Extra rules shade progress, weekends, milestones and today.
  • A milestone is a task with zero duration. Show it as a single colored day.
  • Foxcolab Sheets encrypts your plan on your device, so Foxcolab can't read your dates, owners or launch plans. The Gantt chart template has the bars set up.

Last reviewed 1 December 2026 by Foxcolab Team

A Gantt chart is a bar chart of a project schedule: one row per task, a timeline across the top, and a bar that runs from each task's start date to its end date. To make one in a spreadsheet, list your tasks with an owner, a start date and a duration, let a formula work out each end date, then draw the bars with a conditional formatting rule on a grid of day columns. This guide walks through the build with formulas you can copy, then shows how to add dependencies and milestones. Last, it shows the fastest route: the Gantt chart template in Foxcolab Sheets, where your plan is end-to-end encrypted and Foxcolab can't read it.

What a Gantt chart shows#

The chart answers three questions at a glance: what happens when, who owns it, and what runs at the same time.

PartWhat it tells youHow a spreadsheet shows it
Task rowsThe work, broken into piecesOne task per row, with an owner
TimelineThe calendarOne narrow column per day
BarWhen a task starts and endsCells filled between the start and end dates
ProgressHow much is doneA darker fill over the first part of the bar
MilestoneA deadline or sign-offA zero-length task shown as one marked day
DependencyWhat must finish firstA start date calculated from another task's end
TodayWhere you areA highlighted column

The name is a little misleading. Project historian Patrick Weaver points out that "Gantt chart" first appeared as the title of Wallace Clark's 1923 book, that Henry Gantt's own charts tracked factory output against plan, and that bar charts of planned work are older than Gantt (Weaver, 2012). He also notes a weakness of the modern chart: it shows timing, but "sequencing can only be inferred". That's why the build below puts the sequence into the formulas instead of leaving it to the reader's eye.

Plan the task list first#

Before you open a spreadsheet, write the list:

  1. Break the work into tasks of a few days to two weeks. A six-week bar hides problems until it's too late to fix them.
  2. Give every task one owner. Shared tasks are the ones nobody updates.
  3. Estimate each duration in working days. Weekends then take care of themselves.
  4. Write down what each task waits for. Most tasks wait for one other task to finish. Some wait for two.
  5. Mark the milestones. Sign-offs, launches and deadlines take no time of their own.

Here's a small website relaunch for example.com, starting on Monday, January 4, 2027:

RowTaskOwnerDaysWaits forStartEnd
2Content auditPriya5NothingJan 4Jan 8
3DesignSam10Row 2Jan 11Jan 22
4CopywritingJordan8Row 2Jan 11Jan 20
5BuildSam15Rows 3 and 4Jan 25Feb 12
6TestingPriya5Row 5Feb 15Feb 19
7LaunchAlex0Row 6Feb 22Feb 22

Only one date in that table is typed: January 4. Every other date comes from a formula.

Build the table: task, start, duration, end#

Use these columns: A Task, B Owner, C Start, D Days, E End, F Waits for (a note for readers), G Done (a percentage). Leave column H onward for the timeline.

Gantt chart formulas (tasks in rows 2 to 7)·Text
C2   First start date            1/4/2027   (the only typed date)
E2   End date                    =IF(D2=0,C2,WORKDAY(C2,D2-1))
C3   Starts after row 2          =WORKDAY(E2,1)
C4   Starts after row 2          =WORKDAY(E2,1)
C5   Starts after rows 3 and 4   =WORKDAY(MAX(E3,E4),1)
C6   Starts after row 5          =WORKDAY(E5,1)
C7   Starts after row 6          =WORKDAY(E6,1)

With holidays listed in K2:K12  =IF(D2=0,C2,WORKDAY(C2,D2-1,$K$2:$K$12))
Monday-to-Saturday week         =IF(D2=0,C2,WORKDAY.INTL(C2,D2-1,11))
Two days' wait after row 5      =WORKDAY(E5,1+2)

Fill the End formula down column E. WORKDAY returns the date a given number of working days after a start date, skipping weekends and any holidays you list (Microsoft's WORKDAY reference). The D2-1 matters: the start day is day one, so a five-day task that starts on Monday ends on Friday, not the following Monday. The IF handles milestones, which end on the day they start.

If your team works six days a week, WORKDAY.INTL takes a weekend code, and 11 means Sunday only (WORKDAY.INTL reference). Now change Design from 10 days to 12 and watch Build, Testing and Launch move with it. That chain is the whole point.

Draw the bars with conditional formatting#

Put the dates across row 1: type =C2 in H1, =H1+1 in I1, and fill right to BE1. That's 50 days, January 4 to February 22. Format the row to show the day of the month and make the columns narrow.

Then select H2:BE7 and add these rules, each written for the top-left cell, H2:

Conditional formatting rules (applied to H2:BE7)·Text
Bar         =AND(H$1>=$C2,H$1<=$E2)
Done part   =AND(H$1>=$C2,H$1<=$C2+($E2-$C2+1)*$G2-1)
Milestone   =AND($D2=0,H$1=$C2)
Weekend     =WEEKDAY(H$1,2)>5
Today       =H$1=TODAY()

The dollar signs do the work. H$1 keeps every rule pointed at the date row, and $C2 and $E2 keep it pointed at the task's own start and end. So one rule draws every bar in the grid.

Where two rules color the same cell, the higher rule in the list wins. Keep the milestone and done-part rules above the bar rule, and the weekend rule at the bottom, so a bar running over a weekend stays visible.

Or use a stacked bar chart#

The other classic method is a chart. Microsoft documents it for Excel: insert a stacked bar chart of tasks and dates, give the first series no fill so it disappears, and reverse the category order so the first task sits at the top (Microsoft Support). It's easier with offsets than with raw dates. Build three columns: Task, Offset (=C2-$C$2, days from the project start) and Length (=E2-C2+1). The invisible Offset pushes each visible Length bar to the right place.

MethodBest forWatch out for
Conditional formatting gridWorking plans, progress, weekends and todayAdd day columns when the project runs longer
Stacked bar chartSlides and status reportsBars use calendar days, and milestones need a workaround

Dependencies, milestones and the critical path#

A dependency is what the formulas above build: a task can't start until another finishes. Finish-to-start is the common case. A wait, such as two days for a client to approve a design, is the 1+2 variant in the code block.

A milestone is a task with no duration. Microsoft Project creates one the same way, by entering 0 as the duration (Add a milestone). In the grid, the milestone rule gives it one strongly colored cell.

The critical path is the longest chain of dependent tasks, and it sets the end date. In the example, it runs Content audit → Design → Build → Testing → Launch. Copywriting has two days of slack, because Build waits for Design anyway. To find the chain in your own plan, add a day to a task. If Launch moves, that task is on the critical path.

Mistakes that break a Gantt chart#

MistakeWhat happensFix
Typing every date by handOne slip and the plan quietly goes staleType one start date and calculate the rest
End = start + durationEvery task runs a day longUse D2-1 with WORKDAY, or C2+D2-1 for calendar days
Mixing calendar and working daysDurations don't match the barsPick one unit for the whole plan
Forgetting public holidaysTasks end on days nobody worksPass a holiday range to WORKDAY
Bars longer than the gridLate tasks vanish off the right edgeExtend the date row past the last end date
No Done columnThe chart shows the plan, not realityUpdate Done weekly and compare it with today

Make a Gantt chart in Foxcolab Sheets#

A project plan says more than it seems: launch dates, client names, hiring plans, the deal you're racing to close. Foxcolab Sheets encrypts every spreadsheet on your device with its own key. Cell contents, titles and comments are encrypted before they sync, and charts live inside the encrypted workbook. Foxcolab can't read your timeline. Sheets comes with every Foxcolab account, the free plan included.

Start from the Gantt chart template#

  1. Pick the template

    In your Sheets library, find Start a new spreadsheet on Home and choose Gantt chart. Or click New, then From a template…, open the Projects category and select Use template on Gantt chart.

  2. See what's set up

    A Timeline sheet opens with Project timeline at the top, a Timeline starts date and the columns Task, Owner, Start, End, Days and Done. Six weeks of day columns sit to the right, with week labels on Mondays.

  3. Replace the sample tasks

    Type your own tasks over Discovery, Design, Build and the rest, then set each Start and End. The bars redraw as you type, and Days counts the days for you.

  4. Chain the tasks

    To make a task wait for the one above it, type =WORKDAY(E8,1) in its Start cell instead of a date, pointing at the earlier task's End cell. For a milestone, give it the same Start and End date.

  5. Track progress

    Type a percentage in Done. That share of the bar turns a darker color, and the Done cell fills like a progress bar. Weekends are shaded and today's column is highlighted.

  6. Move the window

    Change Timeline starts to slide the six weeks along. The timeline begins on the Monday of the week you enter.

The task columns and date rows are frozen, so names and dates stay in view while you scroll.

Add your own rules#

  1. Open the rules

    Select the day grid and choose Format → Conditional formatting, then Add rule.

  2. Check the range

    Confirm the cells under Apply to range, such as H2:BE7.

  3. Write the formula

    Under Format cells if, choose Custom formula is and paste a rule from the block above, written for the first cell of the range.

  4. Pick a color

    Under Formatting style, set a Fill color, such as red for milestones, and click Done.

  5. Order the rules

    New rules go to the top of the list. Use Higher priority and Lower priority so milestones sit above bars and weekends sit at the bottom.

Make the chart version#

For a status report, build the Task, Offset and Length columns, select them and choose Insert → Chart. On the Setup tab, set Chart type to Bar and Stacking to Stacked. On the Customize tab, set Chart style → Background to white, then under Series pick Offset and set its Color to the same white so it disappears. Turn on Reverse order under Vertical axis, and title the Horizontal axis "Days from start". The chart is stored inside the spreadsheet, so it's encrypted with everything else.

Share the plan with the right access#

  1. Open sharing

    Click Share, or choose File → Share….

  2. Invite task owners

    Type each owner's email, choose Editor and click Share, so they can update dates and Done themselves. They need a Foxcolab account.

  3. Add stakeholders

    Invite managers as Commenter, so they can ask about a date without moving it.

  4. Give a client a time-limited view

    Invite them as Viewer and set Access expires from the menu next to their name, or create a Public view link with an Expires date and a Password (optional).

  5. Keep copies inside

    Switch off Viewers can download, print and copy so viewers and commenters can't save a copy from Sheets.

When you remove someone with Remove access, Sheets puts a new key in place, so their old copy can't read anything you add afterward. Share a spreadsheet in Sheets covers links and passwords in detail.

Choose File → Print, turn the page sideways, set Scale to Fit to width and click Download PDF for a one-page timeline. File → Download → Microsoft Excel (.xlsx) exports the sheet with its formulas. Downloaded files aren't encrypted, so share them as a Foxcolab Drive link rather than an email attachment. You can also bring an existing plan in through New → Import a file…, as Create, import and export spreadsheets explains.

Your plan is your business. Create a free account and start from the Gantt chart template in a spreadsheet Foxcolab can't read, or see plans for more storage and your own domain. Planning programs across a whole organization? See Foxcolab for enterprise or talk to sales.

Frequently asked questions

Can I make a Gantt chart without special software?

Yes. Any spreadsheet with conditional formatting can draw one. List tasks with start dates and durations, calculate the end dates, add one column per day, and use a rule such as =AND(H$1>=$C2,H$1<=$E2) to fill the cells between each task's start and end.

How do I show that one task depends on another?

Make the later task's start date a formula instead of a typed date. =WORKDAY(E2,1) starts it on the first working day after the task in row 2 ends. When a task waits for several others, use =WORKDAY(MAX(E3,E4),1). Change one duration and every task after it moves.

How do I add a milestone to a Gantt chart?

Add a row with a duration of 0 and make its end date equal its start date. Give it its own conditional formatting rule, such as =AND($D2=0,H$1=$C2) with a strong color, so it shows as a single marked day instead of a bar.

Is a project plan safe in an online spreadsheet?

It depends on who holds the keys. Foxcolab Sheets encrypts every spreadsheet on your device with its own key, so cell contents, titles and comments reach Foxcolab only as encrypted data. Downloaded copies, such as a PDF of the chart, aren't encrypted.

Written by

Foxcolab Team

The Foxcolab team, who build the apps and help people set them up.

More from Foxcolab

Did this guide help you get it done?

One click, no account needed.

Try the tools we write about.

Mail, files, documents, spreadsheets and meetings in one account, with no ads. The free plan is enough to start.

Jump to