A Gantt chart is a visual timeline that shows when tasks start and how long they last. While Excel doesn’t include a built-in Gantt chart option, you can create one manually using a stacked bar chart and basic date calculations. This method is useful for managing schedules, tracking deadlines, and sharing project progress in a format that’s easy to update and adjust as plans change. If you’re looking for more advanced features such as task status, conditional formatting, or automated timeline logic, you can explore the Gantt chart templates listed below the guide.
Making a Gantt Chart in Excel

Set Up the Task Table –
Start by creating a new worksheet in Excel. In Column A, list each task name. In Column B, enter the task’s start date using a proper date format. In Column C, enter the expected end date. Each row should represent one task. Use actual date values rather than text to ensure the timeline calculations work correctly later. Keep the layout clean—avoid merging cells or adding empty rows between tasks.

Calculate the Duration of Each Task –
In Column D, calculate the number of days each task spans. Use the formula =C2-B2+1, assuming your start date is in Column B and end date is in Column C. This includes both the start and end dates in the total. Copy the formula down for all tasks. This duration value will be used to build the Gantt bars accurately in the chart.

Insert the Initial Stacked Bar Chart –
Select the start dates in Column B. With this range selected, go to the Insert tab, click on the Bar Chart icon, and choose Stacked Bar. Excel will insert a chart, though it may appear blank or incomplete at this stage. This serves as the base for your Gantt chart. You’ll add the task durations and label the bars with task names in the next step.

Add Duration and Task Names to the Chart –
Right-click anywhere inside the chart area and choose Select Data. In the Select Data Source window, click the + Add button to insert a new series. For the series name, select the header of the Duration column. For series values, highlight the entire duration column (e.g., D2:D6).
Next, click on the Edit button under the Horizontal (Category) Axis Labels section. Select the range containing task names from Column A and press Enter or click OK. Excel will update the chart, displaying each task’s duration as a horizontal bar aligned with its start date. The chart now reflects your project timeline accurately.

Hide the Start Date Bars to Show Only Duration –
If you want the Gantt chart to display only the task durations, click on the bars representing the start dates (these will appear as the lower part of each stacked bar). Once selected, right-click and choose Format Data Series. In the formatting panel, set the Fill option to No Fill. This removes the visual portion of the start date, leaving only the duration bars visible on the timeline.

Reverse the Task Order for a Proper Gantt Layout –
By default, Excel displays the task list from bottom to top in the chart. To correct this, right-click on the task names along the vertical axis and choose Format Axis. In the formatting options, check the box labeled Categories in reverse order. This reorders the tasks so that the first one appears at the top, giving your chart the correct Gantt layout.

Adjust the Timeline Range on the Date Axis –
To control the timeline display, right-click on the horizontal axis and choose Format Axis. In the axis options, locate the Minimum bound field. Excel uses serial numbers for dates, so to find the correct value, select any blank cell, enter the earliest start date from your task table, and change that cell’s format to Number. The result will be a numeric value representing that date. Use this number as your minimum bound.
You can also adjust the Major unit to control how often date labels appear—for example, use “1” for daily steps or “7” for weekly intervals, depending on how detailed you want the timeline to look.

Refine the Chart Appearance (Optional) –
Once your Gantt chart is working, you can customize its appearance for readability. You may choose to remove gridlines, adjust bar colors to indicate different phases, or bold the task names. To do this, use the Chart Elements and Format tools available in the ribbon or by right-clicking elements inside the chart. You can also add data labels if needed, but avoid cluttering the chart with too much information. These adjustments are optional and depend on how the chart will be used or presented.
Tips
- When working with long project timelines, format the horizontal (date) axis using a custom number format like [$-en-US]d-mmm. This shortens each label to a day and abbreviated month (e.g., 5-Jan), keeping the chart readable without rotating or skipping labels. It also works consistently across regional settings.
- If you think you’ll be adding more tasks later, you can make your chart pick up new rows automatically using Excel’s Name Manager. Using this feature, you can define a range that grows as your list gets longer so you don’t have to change the chart settings each time. It takes a little setup but it saves time on larger projects.
Important
- Avoid formatting start or end dates as text. Excel will not treat them as real dates, which will break formulas and misalign the Gantt chart. Always use actual date values.
- Charts created from filtered tables may behave unpredictably. To avoid display issues, use direct cell ranges or named ranges when selecting chart data.
- When adjusting the minimum or maximum bound of the date axis, enter the value as a serial number, not a formatted date. Excel stores dates as numbers behind the scenes—for example, 1-Jan-2035 is stored as 45197. The chart axis reads this numeric value to position the timeline correctly. If you enter a formatted date like 1/1/2035, Excel won’t apply it properly. To get the serial number, type the date in any cell and change its format to Number.
FAQs
Yes. This process works in most versions of Excel, including Excel 2010 and later. Menu labels may vary slightly, but the core steps remain the same.
Check that your start dates are formatted as dates, not text. Also verify that your duration values are numeric and do not contain blank cells or text.
This basic Gantt chart treats each day equally, including weekends and holidays. If your project skips non-working days, you can adjust the duration using the WORKDAY
function—for example, instead of calculating duration as End Date - Start Date + 1
, use a formula like =WORKDAY(Start Date, Duration) - Start Date
to estimate working days only. However, this still won’t visually remove weekends from the timeline.
To visually highlight or mark weekends, you’ll need to either add separate columns with conditional formatting outside the chart or use an automated Gantt chart template that has built-in weekend handling. Excel’s standard charting tools do not support dynamic exclusion of weekend bars in stacked bar charts.
Yes. Select individual bars in the duration series and apply different fill colors. This has to be done manually unless you use conditional formatting in a more advanced template.