The fastest way to get an hourly project timeline in Excel is to build a Gantt-style bar chart from a simple table of tasks, start times, and durations (in hours), using a stacked bar chart with the start time as the invisible first series. You can also download a pre-built template from Microsoft’s official template gallery, but building your own takes about 10 minutes and gives you full control over the time scale. Below is a complete walkthrough, including formulas, formatting, and common pitfalls.
Why an Hourly Timeline Differs from a Daily One
Most project timeline templates in Excel use days or weeks as the smallest unit. An hourly timeline is for work that happens within a single day or a few days—think event setups, software deployments, film shoots, or shift-based maintenance. The key difference is the horizontal axis: instead of dates, you plot actual clock times (e.g., 08:00, 09:00) or decimal hours (8.0, 9.0). Excel stores times as fractions of a day (0.5 = 12:00 PM), so you must format the axis correctly or your bars will not align with the times you expect.
How to Build a Basic Hourly Timeline (Step-by-Step)
Open a blank workbook in Excel for Microsoft 365 (Windows). The same steps work on Mac, but the ribbon layout differs slightly (Chart Design tab is called Chart Design on both).
- Set up the table – In columns A to D, enter: Task Name (A), Start Time (B), Duration in Hours (C), and End Time (D). For example: A2=”Setup”, B2=8:00 AM, C2=1.5, D2==B2+C2/24 (because 1.5 hours = 1.5/24 of a day).
- Fill the end time formula – In D2, type
=B2+C2/24and copy down. Format B and D as Time (Home > Number Format > Time). - Insert a stacked bar chart – Select A2:D7 (your data range). Go to Insert > Chart > Bar > Stacked Bar.
- Add the start time as the first series – Right-click the chart, choose Select Data. Add a new series named “Start”, with values =B2:B7. Then move it up so it appears first in the list.
- Make the start series invisible – Click the start series bars (they will be the leftmost segments). Go to Format > Shape Fill > No Fill, and Shape Outline > No Outline.
- Reverse the task order – Right-click the vertical axis (task names), choose Format Axis, then check “Categories in reverse order” so the first task appears at the top.
- Set the horizontal axis to show hours – Right-click the horizontal axis, Format Axis. Set Minimum to the earliest start time (e.g., 0.333 for 8:00 AM) and Maximum to the latest end time (e.g., 0.75 for 6:00 PM). Type these as decimal fractions (time/24).
- Format the bars – Select the visible duration series, set Fill to a solid color, and add data labels showing the duration in hours (Format Data Labels > Value From Cells, select C2:C7).
Your chart now shows each task as a horizontal bar proportional to its duration, positioned on the hour axis. The key trick is the B2+C2/24 formula—Excel treats 1 hour as 1/24 of a day, so you must divide hours by 24 to convert.
Using a Pre-Built Template Instead
If you prefer a ready-made file, Microsoft offers a free “Project timeline” template in Excel (File > New > search “project timeline”). However, most of these are daily or weekly, not hourly. For hourly, search for “hourly schedule” or “event timeline” in the template gallery. A better option is to search online for a free hourly Gantt template from reputable sites like Vertex42 or Smartsheet’s Excel downloads. Always check that the template uses actual time values, not text, so you can edit the axis. If the template uses formulas, verify they are not broken before you invest hours of data entry.
Common Problems and How to Fix Them
The most frequent issue is the horizontal axis not showing the correct times. This happens when the axis minimum/maximum are set to dates (like 1/0/1900) instead of times. Fix: format the axis number as Time, and set the Minimum/Maximum as decimal values (e.g., 0.25 for 6:00 AM, 0.75 for 6:00 PM). Another issue: the bars appear in reverse order (first task at bottom). Fix: check “Categories in reverse order” as described. A third problem is overlapping bars when two tasks share the same start time—Excel stacks them, which is actually correct for a stacked bar chart, but if you want them side-by-side, you need to add a dummy series or use a different chart type. Finally, if your durations are in hours and minutes (e.g., 1:30), convert them to decimal hours first (1.5) or use a formula like =HOUR(C2)+MINUTE(C2)/60.
Adding a Timeline with Dependencies (Advanced)
For a more professional look, you can add dependency arrows using the “Insert > Shapes > Arrow” tool, but they won’t move automatically if you change dates. A better method is to use a separate column for “Predecessor” and then use conditional formatting to highlight tasks that start before their predecessor ends. For example, with predecessors in column E, you can use a formula in conditional formatting to turn the bar red if the start time is earlier than the predecessor’s end time. This requires a helper column that looks up the predecessor’s end time using =INDEX($D$2:$D$7, MATCH(E2, $A$2:$A$7, 0)). Then use a rule like =B2<VLOOKUP(E2,$A$2:$D$7,4,FALSE) to highlight the conflict. This is advanced but very useful for real project tracking.
Alternative: Using a Pivot Table or Conditional Formatting
If you don’t need a chart, you can create an hourly timeline using conditional formatting on a grid. Set up a row for each hour (e.g., 8:00 AM, 9:00 AM, …) and a column for each task. Then use a formula in conditional formatting to fill the cell if the hour falls between the task’s start and end time. For example, with hours in B1:Y1 (as time values) and tasks in A2:A7, select B2:Y7, go to Home > Conditional Formatting > New Rule > Use a formula. Enter =AND(B$1>=$B2, B$1<=$D2) and set a fill color. This creates a visual timeline without a chart, and it’s easier to print. The downside is that it doesn’t show durations proportionally—each hour is a fixed cell width.
Costs and Safety Considerations
Excel itself is part of Microsoft 365 (subscription) or Office 2021 (one-time purchase). The built-in templates are free, but some third-party templates are paid. There are no safety concerns with the spreadsheet itself, but if you are using the timeline for a physical event or construction, always include buffer time for delays and check that your time estimates are realistic—this is a planning tool, not a guarantee. Also, ensure you save your workbook frequently (Ctrl+S) and keep a backup copy before running any macros, as macros cannot be undone with Ctrl+Z.
Frequently Asked Questions
How do I convert hours and minutes to decimal hours in Excel? If you have a time like 1:30 in cell C2, use =HOUR(C2)+MINUTE(C2)/60 to get 1.5. Alternatively, format the cell as Number and multiply by 24: =C2*24 (since Excel stores time as a fraction of a day).
Can I make the timeline show specific times like 8:00 AM instead of decimal numbers? Yes. Right-click the horizontal axis, choose Format Axis, then under Number, select Time and pick a format like “1:30 PM”. For the data labels, you can use a custom format like “0.0” hrs or convert back to time with =TEXT(C2/24, "h:mm").
What if my tasks span multiple days? An hourly timeline works best for a single day. For multi-day, use a daily timeline with hours as a secondary axis, or break the project into separate daily sheets. Alternatively, use a date-time format (e.g., 1/5/2024 8:00 AM) and set the axis to show both date and time.
Why does my stacked bar chart show all tasks in one row? That happens if you selected the wrong data range. Make sure your first column (Task Names) is in the same row as the start and duration columns. Also, ensure the chart type is “Stacked Bar” not “Stacked Column”—the bar chart has horizontal bars, column has vertical.
Is there a way to auto-update the timeline when I change a task’s duration? Yes, because the end time formula =B2+C2/24 recalculates automatically. The chart will update instantly. The only manual part is adjusting the axis minimum/maximum if the new end time falls outside the current range.
Can I use this template in Google Sheets? Yes, the same steps work in Google Sheets, but the menu paths differ: Insert > Chart, then in the Chart editor, choose Stacked bar chart. The formula =B2+C2/24 works the same. The axis formatting is under Customize > Horizontal axis.
Related
- IMCOSH in Google Sheets: Formula & Examples
- Experience with Data Entry? What It Really Involves
- Python Generate N Random Numbers: 4 Easy Ways
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Leading Zeros in Excel: How to Keep ThemTo keep a leading zero in Excel, store the entry as text or apply a custom number format…
- Excel Slicer: Group Dates by MonthYes. In Excel for Microsoft 365 on Windows, you can group a PivotTable date field by month, then…
- Free Excel Sales Tracking Templates: What WorksYes, you can find genuinely free Excel sales tracking templates on Microsoft’s own template gallery (templates.office.com) and on…
- Excel Table Multiple Header Rows: What WorksNo. An Excel Table can have only one header row: the first row of the table range supplies…
- Track Changes in Word: How to Review and Accept EditsTo use Track Changes in Microsoft Word, open the Review tab and select Track Changes, then edit the…
- AG Grid Hide Column Menu: How to Use and Customize ItTo hide a column in AG Grid, open the column’s header menu and choose its hide option, if…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.