Chart & Visualization Issues

How to Create an Excel Gantt Chart with Project-Specific Schedules

Natalie TaylorNatalie Taylor Nov 11, 2026 869 views

Question details

The user needs to create a Gantt chart in Excel that dynamically displays different weekly schedules depending on the project type and start date.

Create an Excel Gantt Chart with Project-Specific Schedules
Product
Excel
Device & OS
not provided
Scenario
Managing multiple project timelines where each project requires a tailored weekly schedule and a specific starting date to be visually represented.
Observed behavior
Requires a setup using formulas like XLOOKUP or conditional formatting to dynamically render timeline bars corresponding to the project's unique schedule and start date.
Before you start

Ensure your project data is organized in a clear table containing project names, project types, start dates, and durations before building your chart.

Solution 1Recommended

Create a Grid-Based Gantt Chart Using Conditional Formatting

This method uses Excel cells as a timeline grid and applies conditional formatting to highlight the cells that fall between a project's start and end dates.

A grid-based approach provides the highest flexibility for project-specific schedules. By combining XLOOKUP or FILTER functions, you can retrieve the correct timeline duration based on the project type.

1
Set up the project data table

In your worksheet, create columns for Task Name, Project Type, Start Date, and Duration. In the columns to the right, create a continuous timeline of dates representing your schedule grid.

2
Calculate dynamic schedules using lookup formulas

If durations vary by project type, create a separate reference table. Use the XLOOKUP or VLOOKUP function in your Duration column to automatically fetch the correct weekly schedule length based on the Project Type entered.

3
Apply conditional formatting

Select the cells in your timeline grid. Go to Home > Conditional Formatting > New Rule > 'Use a formula to determine which cells to format'.

4
Enter the timeline formula

Input a formula such as =AND(E$1>=$C2, E$1<=($C2+$D2-1)) where E$1 is the timeline date header, $C2 is the Start Date, and $D2 is the Duration. Choose a fill color and click OK. The grid will now color-code the cells spanning each project's schedule.

Create a Grid-Based Gantt Chart Using Conditional Formatting
Dynamic Updates: Whenever you change the Start Date or Project Type, the highlighted blocks on the timeline will automatically shift to reflect the new schedule.
Manage Projects Efficiently with WPS Office

Create Dynamic Gantt Charts in WPS Spreadsheet

WPS Spreadsheet provides powerful functions, advanced conditional formatting, and a rich library of free templates, making it incredibly simple to create customized Gantt charts with project-specific schedules.

  1. 1. Prepare your project data: Open WPS Spreadsheet and input your task names, project types, start dates, and durations into a structured table.
  2. 2. Set up lookup formulas: Use the built-in XLOOKUP or VLOOKUP functions in WPS to automatically assign the correct schedule duration based on your specified project type.
  3. 3. Apply conditional formatting: Highlight your timeline grid, navigate to the Home tab, and select Conditional Formatting. Create a formula-based rule to automatically color the cells representing each task's timeline.
  4. 4. Use built-in templates: Alternatively, click on 'New' from the homepage to access the WPS Template library, search for 'Gantt Chart', and instantly apply a professional layout.
Access a wide variety of free, ready-to-use Gantt chart templatesSeamlessly compatible with Microsoft Excel (.xlsx) formatsAdvanced conditional formatting for flexible, dynamic timelinesFull support for XLOOKUP, FILTER, and complex scheduling formulas
microsoft office alternative - wps office

Frequently Asked Questions

How do I exclude weekends from my Gantt chart calculation?

You can exclude weekends by using the WORKDAY function to calculate your task end dates. The formula =WORKDAY(Start_Date, Duration) automatically skips Saturdays and Sundays. You can then base your conditional formatting or chart data on these adjusted dates.

Can I track progress percentages on the Gantt chart?

Yes. Add a '% Complete' column to your data table. In a grid-based Gantt chart, you can apply a secondary conditional formatting rule with a darker fill color, calculating the number of days completed against the total duration, allowing the completed portion to overlap the main timeline bar.

Is there a native Gantt chart button in spreadsheet software?

Most standard spreadsheet software, including Excel, does not have a dedicated 'Gantt Chart' button. Instead, Gantt charts are built by creatively using Stacked Bar charts with invisible starting bars, utilizing conditional formatting grids, or relying on pre-built templates.