Excel to Gantt Chart: Step-by-Step Guide
In this article
You can turn an Excel task list into a usable Gantt chart in about ten minutes, without extra software, using Excel's built-in stacked bar chart. The chart reads a table with task names, start dates and durations, then plots each task as a horizontal bar against a timeline. Alternatively, if you have a Microsoft 365 subscription, you can use Excel's built-in Gantt template or the add-in from the Microsoft Store, which does much of the formatting for you. Both routes need the same thing first: a clean, well-structured task table with real date values, not text. Get that right and the chart almost builds itself; get it wrong and the bars will appear in the wrong order or not at all.
What You'll Need
- Excel for Windows, Mac or the web. The stacked bar method works in all versions. Menu labels differ slightly by version, device and region, so expect small wording differences from the steps below.
- A task list with at least four columns: task name, start date, end date and duration in days. A fifth column for the person responsible or status is useful but optional.
- Real date values in the date columns. If dates were pasted in as text they will not calculate, and you will need to convert them first.
- Optional but recommended: a separate column for any dependencies, so you can check the date logic before charting.
- For the template route, a Microsoft 365 subscription and an internet connection to load templates or the add-in from the official Microsoft Store.
Step-by-Step
- Build a single task table. Put your headers in row 1: Task, Start, End, Duration, Owner. One task per row, no merged cells, no blank rows inside the table, and no subtotal rows. Keep the table starting in cell A1 so chart ranges are easy to select.
- Enter dates as dates. Type them in a format Excel recognises, such as 2026-03-04 or 3/4/2026 depending on your regional settings. If a date left-aligns in the cell by default, it is probably text. To fix a whole column, select it, then use Data > Text to Columns and finish the wizard with the column set to Date, or re-enter the values with a consistent format.
- Calculate Duration with a formula. In the Duration column, enter a formula like
=D2-C2+1so both the start and end day are counted. Copy it down the column. If you would rather type durations manually, do so, but keep the Start column accurate because the chart depends on it. - Sort the rows the way you want the chart to read. Excel plots a horizontal bar chart bottom-up by default, so the first row in your table appears at the bottom of the chart. Either sort tasks by start date in ascending order and accept the reading, or reverse the row order before charting so the earliest task sits at the top. Do not rely on re-sorting the chart afterwards; it will not reorder the axis cleanly.
- Insert the chart. Select the Task, Start and Duration columns (hold Ctrl or Cmd to select non-adjacent columns, or select the whole table if it only has those three). Go to Insert, open the chart gallery, choose Column or Bar, and pick Stacked Bar. A chart appears with two colours: one series for the start dates and one for durations.
- Hide the start-date segment. Click the first series (the start dates) once so only that segment is selected, then format it with No Fill and no border. The visible bars now begin at each task's actual start date. This is the step people most often skip, and it is why some Gantt charts float to the right of the plot area.
- Set the horizontal axis to date. Right-click the date axis and open Format Axis. Set the axis type to Date if the option is offered, and set Minimum and Maximum to your project start and finish dates rather than letting Excel auto-scale. Without fixed bounds the timeline can compress or drift when you add tasks.
- Fix the vertical axis. Open the vertical axis options and turn on Categories in reverse order so the first table row appears at the top. If your labels sit in the middle of the bars instead of at the left edge, set the label position to Low.
- Tidy the labels. Adjust the axis number format to a short date or just month and day, increase the gap width or reduce it to change bar thickness, and add a chart title. Add a data label to the duration series if you want day counts shown on each bar.
- Add progress bars. To show percent complete, add a Percent column, calculate the completed fraction, and add it as a third series with a different fill. Percent-complete bars are drawn from the start of each task, so they layer neatly on top of the duration bar.
- Test it with a change. Alter one task's start date and one duration, then confirm both the bar position and bar length update. If nothing moves, the chart ranges may not be linked to the table, or the chart is reading a fixed range that excludes new rows. Convert the source data to a table with Ctrl+T or Cmd+T so added rows are picked up automatically.
- Save and share. Save a copy as .xlsx for editing and export a PDF for people who only need to view it. If you use the template or add-in route instead, open File > New, search the template gallery for Gantt, or open Insert > Get Add-ins and look for Microsoft's own Gantt add-in, then paste your task table into the template's table.
Common Mistakes
The most frequent failure is leaving the start-date series visible, which produces bars that appear to float or drift. Second is storing dates as text, which gives bars of zero length or dates that will not sort. Third is forgetting that Excel draws bar charts bottom-up, so the chart reads upside down relative to the table unless you reverse the category order. Fourth is using merged cells or blank rows, which break the chart's category mapping. Fifth is relying on auto-scaling axes, so the chart looks fine at first and then rescales oddly when the project dates change. Finally, many people chart the End date as a series rather than Duration; end dates overlap and mislead because the chart cannot tell a start from a finish.
Tips
Keep one source table per chart and never type over chart-generated labels, because they will disappear on refresh. Use a helper column that converts Duration to a running total if you need milestone markers. Colour-code bars by owner or phase by adding a category column and splitting the chart into series, though this gets fiddly past three or four groups; for bigger projects a dedicated project tool is faster than fighting Excel. Freeze the header row so long tables stay readable while you check formulas, and name your date columns clearly so the chart legend is understandable to anyone who opens the file. If you rebuild the same chart often, save your own version as a template with all formatting in place.
Troubleshooting
Bars are all the same length or missing: check that Duration contains numbers, not text with a day suffix like "5 days". Recalculate the column with a formula.
Dates appear as numbers like 46000: that is Excel's serial date format. Apply a date format to the cells.
Bars start too far to the right: the start series is still filled. Select it and set No Fill.
Task order is reversed: turn on Categories in reverse order on the vertical axis, or reverse the table rows.
New tasks do not appear: convert the data to a table, or right-click the chart, choose Select Data, and extend the range.
The axis shows wrong dates: set fixed minimum and maximum dates on the axis instead of automatic bounds.
Chart is unreadable with many tasks: increase the chart height, reduce the font size of the axis labels, or group tasks into phases.
If none of that helps, delete the chart and rebuild it from the table; a rebuild is usually faster than hunting a stray range reference.
Frequently Asked Questions
Can I make a Gantt chart without any add-ins?
Yes. The stacked bar method with a hidden start series is built into every version of Excel and needs no add-in or subscription.
Do I need dependency arrows between tasks?
Excel's chart tools do not draw true dependency links. Most people show dependencies with a separate column, a note, or thin line shapes drawn over the chart, but these do not update automatically.
Why do my bars look offset from the gridlines?
The axis bounds and the bar gap settings usually cause this. Fix the axis minimum to your project start date and set the boundary position of the bars to sit between tick marks.
Can I build one in Excel for the web?
Yes, the chart types and most formatting options are available there, though some axis and fill settings are fewer than in the desktop app. Build and format in the desktop app if the web version's options feel limited.
How do I show days off or non-working days?
Use a custom number format for the date axis that greys out weekends, or add vertical shape lines. True working-day logic for durations should be calculated in your table with a formula, not left to the chart.
Is a Gantt chart the same as a timeline?
No. A timeline shows key dates and milestones; a Gantt chart shows each task's start, duration and end, which is why it needs both start dates and durations to work.