Create Gantt chart using dates and times
Our take
Our Take – Turning Raw Time Stamps into Insightful Gantt Views
When a manufacturing team confronts a year‑long log of part‑level timestamps, the first instinct is to slice the data into weekly chunks and hope a simple bar chart will reveal the story. The reality, however, is that the raw “Start Date & Time” and “End Date & Time” columns hide a wealth of scheduling nuance that only a purpose‑built Gantt visual can unlock. Readers who have wrestled with the same challenge will recognize the frustration of a static stacked‑bar chart that cannot accommodate both the part number and the operation code on the vertical axis. That limitation is more than cosmetic; it prevents analysts from spotting overlap, bottlenecks, and idle windows across multiple jobs. The Reddit post by Duelsy illustrates this gap perfectly, and it also points to a broader need: a native‑Excel solution that blends the flexibility of a PivotTable with the visual clarity of a Gantt chart, all without third‑party add‑ins.
The core obstacle lies in how Excel interprets date‑time values. When the two are combined in a single column, the default sorting and grouping mechanisms treat each timestamp as an atomic value, making it difficult to calculate duration or to bucket activities by hour. By separating the date and time into distinct fields—using =INT(A2) for the date and =A2‑INT(A2) for the time—users gain two immediate advantages. First, the date component can serve as a row label in a PivotTable, while the time component can be used as a numeric field that drives the length of each bar. Second, the split enables the creation of calculated columns such as “Start Hour” ( =HOUR(Time) ) and “Duration Hours” ( =(End‑Start)*24 ), which are essential for an hour‑by‑hour Gantt view. Once these fields are in place, the data can be pivoted on Part + Operation as a composite row label, with the start hour as the axis and the duration as the value. The resulting PivotChart, set to a stacked bar format, will automatically align each operation on its own row while showing precise start times and lengths.
Beyond the mechanics, the why matters. In a production environment, seeing when a part moves from operation 10 to operation 20 on the same day can surface hidden change‑over costs or reveal opportunities for parallel processing. A well‑structured Gantt chart makes those insights visible at a glance, turning a spreadsheet into a strategic planning board. Moreover, because the chart is built from a PivotTable, any new data—whether a new part, a revised schedule, or an added week—feeds directly into the visual without manual re‑formatting. This dynamic link is what separates a fragile static chart from an empowering, future‑focused dashboard. For teams that cannot install extensions, leveraging Excel’s native pivot and chart tools is not just a workaround; it is a demonstration of how powerful, accessible analytics can be when the underlying data model is thoughtfully designed.
The broader lesson for spreadsheet power users is to treat the raw log as a relational table rather than a flat list. By normalizing timestamps, adding calculated fields, and using composite keys for rows, the same approach can be replicated for other time‑based analyses—whether tracking employee shifts, project milestones, or service tickets. The editorial on Gantt chart (Stacked Bar) shows a similar pattern: start with a clean data model, then let the PivotTable handle grouping and aggregation. Likewise, the piece on Automate list size reduction reminds us that automation begins with a well‑structured source, not with a series of manual edits.
Looking ahead, the next frontier is integrating these native Excel Gantt views with AI‑driven forecasting. Imagine a sheet that not only visualizes past operations but also predicts where future bottlenecks will emerge, suggesting schedule adjustments before they become problems. As AI‑native spreadsheet technology matures, the line between data preparation and insight generation will blur, empowering users to explore, discover, and transform their workflows without leaving the familiar Excel environment. The question we should watch is: how quickly will these predictive layers become standard features, and what new habits will they inspire in today’s data‑savvy professionals?
Hi, I have a large set of data that covers a years worth of e.g. manufacturing. I'm currently breaking it down into smaller week by week subsets. I'd like to display what was done each day/week as a Gantt chart, preferably hour by hour.
Currently the date & time are in one combined column but I can easily separate this out if it will help.
Some parts have 1 suboperation to complete them, other parts can have multiple suboperations to complete them.
An example of the data I have is below (1 job with multiple operations, 2 with 1 operations all starting at different dates and times):
| Part | Operation | Start Date & Time | End Date & Time |
|---|---|---|---|
| 1 | 10 | 28/03/2025 06:55 | 28/03/2025 15:03 |
| 1 | 20 | 28/03/2025 16:22 | 28/03/2025 17:33 |
| 2 | 10 | 28/03/2025 12:10 | 30/03/2025 17:52 |
| 3 | 10 | 30/03/2025 19:00 | 31/03/2025 04:35 |
I've had a go at it using various info resources I've found across e.g. Reddit, YouTube etc but not quite getting what I'd like. An example of what I've created for one part with multiple operations is below:
This is using a chart, however it's not a PivotTable based chart, so can't easily be customised or edited etc. Also, it doesn't allow me to capture the Part # as well as the OP # on the LH vertical axis. This is key for separating jobs and also allowing me to see where parts may have overlapped as I add in more data.
Due to this being done on a work PC, I'm unable to install any Excel extensions etc that might help. Have to do it all with standard Excel.
Thanks in advance for any assistance people can offer. If anybody needs additional data to help me then please let me know!
[link] [comments]
Read on the original site
Open the publisher's page for the full experience
Related Articles
- Gantt chart (Stacked Bar)Hi all, ive been trying to make a chart with no luck. The chart should show the y axis with the list off staff members and the x axis the time from 6am to 2 am. Ive made a small chart for the data of staff names, shift start time and then the duration in hours. Start times formatted to time (eg 06:30) however im not sure how to format the duration. The x axis also keeps showing time through multiple days, and the data for duration seems to stretch too far than a few hours. Any help is welcome, im not well experienced in excel so i apologise submitted by /u/tmbsketches [link] [comments]
- Automate list size reductionI'm going to try to lay this out succinctly, let's see how I do: I am trying to build a flexible re-usable sheet to dump two reports into and receive a comparison report. One report has a list of date time stamps for a variable number of work orders (Dt), each with a variable number of entries. The second has a list of date time stamps for a variable number of inspections that also have work orders (Mt), but also have way more work orders, and often are missing inspections for some work orders entirely. What I want out the end is a report for each produced time stamp (Dt) that tells me how separate it is from the most recent (before or after) inspection (Mt). What I do right now is basically a min(abs(Dt-filter( (Mt)*(does Mt work order match Dt work order)))). It works, but oh em gee the computation, because every Dt entry gets compared to EVERY Mt computation. After that I just look at a pivot table of the results to see max time and average. This tells me if people went too long saving parts (Dt time stamp) but NOT measuring parts (Mt). Is there a way to take each of the original lists, have them pushed/pulled to a variable width series of columns (one per Work Order), then have a variable length comparator look at the first set of columns and do that "time to closest inspection" but only with the matching column from the second set of data? I know I could do it if I make them part of a data model and just slowly go through each work order, but I'd prefer it to just spit out the results at the end so I can hand this sheet off to others and not have to manually do the adjustments every day. Let me know if this isn't clear and I can try to set up some example mini-tables or something to better explain my gibber jabber above. e.t.a. uh Version 2603 (Build 19822.20150 Click-to-Run) submitted by /u/NeedIQMSHelp [link] [comments]