Chart & Visualization Issues

How to Create an Excel Gantt Chart with Conditional Formatting and Drop-Downs

Ayan MasoodAyan Masood Nov 10, 2026 869 views

Question details

The user wants to build a highly customizable Gantt chart that utilizes conditional formatting for task colors and data validation lists for assigning tasks and statuses.

Create an Excel Gantt Chart with Conditional Formatting and Drop-Downs
Product
Microsoft Excel
Device & OS
not provided
Scenario
Setting up a dynamic project management tool where the timeline updates automatically based on dates, and specific users can be selected from a drop-down menu.
Observed behavior
A requirement to integrate multiple advanced Excel features (data validation, conditional formatting rules, and linked cell references) into a cohesive, reusable project tracking chart.
Before you start

Prepare a clean spreadsheet with your project data organized into standard columns, such as Task Name, Start Date, End Date, and Assigned To, before applying advanced formatting rules.

Solution 1Recommended

Build the Gantt Chart using Data Validation and Conditional Formatting

Combine data validation lists for task assignments and formula-based conditional formatting to automatically draw colored bars across your timeline.

To make this work dynamically, you will use Data Validation for the drop-down menus and a specific logical formula in Conditional Formatting to highlight the grid cells that fall between your start and end dates. Pay close attention to relative and absolute cell references (the $ signs) in the formula.

1
Set up your drop-down lists

Select the cells in your 'Assigned To' or 'Status' column. Go to the Data tab on the ribbon and click 'Data Validation'. Under the 'Allow' drop-down, choose 'List', and in the 'Source' box, type your options separated by commas (e.g., John, Jane, Mike) or select a range containing the names. Click OK.

2
Create the timeline grid

To the right of your data columns, set up your timeline by entering project dates across the top row (e.g., starting in cell E1, F1, G1, etc.). Ensure these are formatted as dates.

3
Apply conditional formatting for the Gantt bars

Highlight the entire grid below your timeline dates. Navigate to the Home tab, click 'Conditional Formatting', and select 'New Rule'. Choose 'Use a formula to determine which cells to format'.

4
Enter the timeline formula

In the formula box, enter a formula that checks if the timeline date falls between the start and end dates. For example, if your timeline dates start in E1, Start Dates are in column B, and End Dates are in column C, use: =AND(E$1>=$B2, E$1<=$C2). Click 'Format', choose a Fill color for your Gantt bars, and click OK.

Build the Gantt Chart using Data Validation and Conditional Formatting
Coloring by Status: You can add additional conditional formatting rules to change the bar colors based on the drop-down selection. For example, add a rule like =AND(E$1>=$B2, E$1<=$C2, $D2="Complete") and set the fill color to green.
Efficient Project Management with WPS Spreadsheet

Create Professional Gantt Charts in WPS Spreadsheet

WPS Spreadsheet offers powerful conditional formatting, data validation, and an extensive library of free templates to help you build customizable Gantt charts effortlessly.

  1. 1. Set up your project data: Open WPS Spreadsheet and create your project schedule table with columns for Task, Start Date, End Date, and Status.
  2. 2. Add drop-down menus: Go to the Data tab and select 'Validation' to create drop-down lists for task assignees or statuses.
  3. 3. Apply conditional formatting: Navigate to the Home tab, click 'Conditional Formatting', and set up formula-based rules to highlight the timeline cells based on your project dates.
  4. 4. Save and share: Save your completed Gantt chart seamlessly in .xlsx format to share with your team without compatibility issues.
Free access to premium Gantt chart and project management templatesFull compatibility with Microsoft Excel formats (.xlsx)Intuitive interface for applying complex conditional formatting and data validationLightweight application that runs smoothly on Windows, Mac, and Linux
microsoft office alternative - wps office

Frequently Asked Questions

Why is my conditional formatting not highlighting the correct dates in the Gantt chart?

This is usually caused by incorrect absolute and relative cell references. Ensure the column reference for the timeline dates is not locked (e.g., use E$1 instead of $E$1), and the row reference for your task dates is not locked (e.g., use $B2 instead of $B$2).

How do I make my Gantt chart change colors based on task status?

You need to add a new conditional formatting rule using a formula that checks both the date range and the status column. For example, use =AND(E$1>=$B2, E$1<=$C2, $D2="In Progress") and apply a specific fill color for that status.

Can I create dependent drop-down lists for my Gantt chart?

Yes, you can create dependent drop-downs by using the INDIRECT function in the Data Validation source box. This allows the options in the second drop-down to change based on the selection made in the first drop-down.

Do I need to use VBA to create a Gantt chart?

No, VBA is not required for a standard Gantt chart. Conditional formatting and data validation are sufficient for creating dynamic, color-coded visual timelines. VBA is only necessary if you want to automate complex tasks like auto-sorting or sending email notifications.