How to Create an Excel Gantt Chart with Project-Specific Schedules
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.

- 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.
Ensure your project data is organized in a clear table containing project names, project types, start dates, and durations before building your chart.
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.
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.
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.
Select the cells in your timeline grid. Go to Home > Conditional Formatting > New Rule > 'Use a formula to determine which cells to format'.
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.

Build a Gantt Chart Using a Stacked Bar Chart
Use Excel's built-in Stacked Bar Chart feature to visually represent project schedules by hiding the first data series.
Use a Pre-Built Gantt Chart Template
Save time by downloading and customizing a pre-made Gantt chart template instead of building one from scratch.
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. Prepare your project data: Open WPS Spreadsheet and input your task names, project types, start dates, and durations into a structured table.
- 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. 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. 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.

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.




