HomeGoogle DocsSpreadsheetCreating a Gantt Chart with Stacked Bar Chart in Google Sheets

Creating a Gantt Chart with Stacked Bar Chart in Google Sheets

This tutorial explains how to quickly create a basic Gantt chart using the Stacked Bar chart feature in Google Sheets. Creating this chart requires inputting task names, start dates, end dates, and durations.

For additional timeline details such as remaining days, elapsed days, holidays, etc., you may need to utilize SPARKLINES or Conditional Formatting. (You can also display the remaining days in a Stacked Bar chart. Please check the ‘Resources’ section at the bottom.)

This Gantt chart is designed for basic use and lacks features such as task grouping, task linking, or setting dependencies, making it unsuitable for complex projects.

Basic Gantt chart created using stacked bar chart in Google Sheets

Data Formatting

Prepare the following data for creating the chart:

TaskProject StartProject EndTask Duration
Drawing Approval19-11-202304-12-202315
Mobilisation04-12-202313-12-20239
Civil Works13-12-202307-01-202425
Structural Works07-01-202406-02-202430
Electrical Cable Laying06-02-202401-03-202424
Panel Erection02-03-202418-03-202416
Panel Charging20-03-202427-03-20247
Testing & Commissioning25-03-202414-04-202420

To prepare the data:

  1. Enter the above data in cells A1:C9 of an empty sheet, excluding the duration column.
  2. In cell D2, enter the following array formula to calculate the duration:
    =ArrayFormula(DAYS(C2:C9, B2:B9))
  3. In cell F1, enter the following formula to obtain the date value of the earliest date among the task start and end dates:
    =N(MIN(B2:C9))

This formatted data is necessary for creating the Gantt chart using the Stacked Bar chart in Google Sheets.

Steps to Create the Gantt Chart Using the Stacked Bar Chart

Select the data range A1:D9 and click Insert > Chart. Google Sheets will insert a chart, which may not be the one we want. We will modify it to meet our requirements. Here are the settings to follow:

Within the Chart Editor sidebar panel, you’ll find two tabs: Setup and Customize.

Setup Tab Settings:

  • Under Chart Type, select Stacked Bar chart.
  • Ensure Stacking is set to Standard if it’s not already.
  • Under Y-Axis, ensure that the ‘Task’ field is added. If it’s not, remove any existing Y-Axis field and add the ‘Task’ field.
  • Under Series, include the fields ‘Project End’ and ‘Task Duration’. Remove any unnecessary fields, such as ‘Task Start’ if present.
Stacked bar Gantt chart settings: Setup tab

Customize Tab Settings:

  • Click Series and select Project End, then change the fill color to white.
  • Under the Horizontal axis, enter the value returned by the formula in cell F1 into the Min field. Then, under Number Format, select Date Time and choose your preferred date formatting.
Stacked bar Gantt chart settings: Customize Tab

Your basic Gantt chart is now ready.

Important Note

If you modify the project start date or end date for any task in the source data, the formula in cell F1 may return a different date value.

You will need to manually update the ‘Min’ value in the Customize tab of the chart editor. You can find this under the Horizontal axis settings (refer to the screenshot above).

Resources

We can display the remaining days for each task in the above Gantt chart (Stacked Bar chart). You can find this and other resources below.

Prashanth K V
Prashanth K V
Your Trusted Google Sheets and Excel Expert Prashanth K V is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

Most Discussed

Reservation and Booking Status Calendar Template in Google Sheets

Managing room availability manually can quickly become confusing, especially when you handle multiple rooms,...

Date-Related Conditional Formatting Rules in Google Sheets

Based on my experience, much of the conditional formatting in Google Sheets centers around...

Multi-Row Dynamic Dependent Drop-Down List in Google Sheets

We can create a multi-row dynamic dependent drop-down list in Google Sheets without using...

More like this

Free Student Assignment Tracker Template in Google Sheets

Keeping track of assignments doesn't have to be stressful. That's why I created this...

How to Use the SHEET and SHEETS Functions in Google Sheets

The SHEET and SHEETS functions let you retrieve information about worksheets in a Google...

How to Create a Self-Healing Table of Contents in Google Sheets

A table of contents makes navigating large Google Sheets workbooks much easier. However, a...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.