Creating a Gantt Chart with Stacked Bar Chart in Google Sheets

Published on

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 KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Marking Case-Sensitive Unique Values in Excel

Marking case-sensitive unique values provides several benefits compared to merely extracting them in an...

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Compare Two Tables for Differences in Excel

To compare two tables with similar data for differences, you can use the XLOOKUP...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

More like this

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

Summarize Data and Keep the Last Record in Google Sheets

In Google Sheets, we can summarize data (like sum, average, min, max, count) using...

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.