How to Create an Excel Timeline Chart with Lunch Breaks
Question details
The user needs to create an Excel timeline or Gantt-style chart that accurately displays employee work periods and accounts for lunch breaks or coverage gaps.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Scheduling employee shifts, visualizing work periods, and identifying coverage gaps such as lunch breaks within a timeline.
- Observed behavior
- A customized chart is required to display separate time intervals and durations side-by-side, specifically highlighting inactive periods like lunch breaks.
Ensure your scheduling data is cleanly organized into columns with a specific start time, break time, and end time for each employee or task.
Create a Stacked Bar Chart with Formula Data Preparation
Calculate the specific durations of work periods and breaks using basic subtraction formulas, then visualize the timeline using a stacked bar chart with hidden intervals.
By calculating the exact length of each working block and break block, you can stack them horizontally. Hiding the segments that represent breaks creates a professional Gantt-style timeline.
Create headers for Shift Start, Break Start, Break End, and Shift End. Enter the corresponding times for each employee in the rows below.
In adjacent columns, calculate the duration of the first work block (e.g., `=B2-A2`), the lunch break duration (e.g., `=C2-B2`), and the second work block (e.g., `=D2-C2`).
Select the initial start time column and your newly calculated duration columns. Go to the 'Insert' tab and select 'Stacked Bar Chart' from the charts menu.
Right-click the data series representing the initial start time offset, select 'Format Data Series', and choose 'No Fill'. Repeat this process for the data series representing the lunch break to make the gaps invisible.

Manage Larger Schedules Using Power Query
For complex schedules involving multiple shifts or hundreds of employees, use Power Query to unpivot the data into a chart-ready format.
Easily Create Timeline Charts in WPS Spreadsheet
WPS Spreadsheet provides powerful charting tools and seamless data manipulation to help you build complex Gantt-style schedules and timelines with lunch breaks effortlessly.
- 1. Open Your Schedule: Launch WPS Spreadsheet and open the document containing your shift scheduling data.
- 2. Calculate Time Intervals: Add columns to calculate the duration of the morning shift, the lunch break, and the afternoon shift using standard subtraction formulas.
- 3. Insert the Chart: Highlight the start time and the calculated duration data, click the 'Insert' tab, click 'Chart', and select the 'Stacked Bar' option.
- 4. Format to Hide Breaks: Select the lunch break data series within the chart, open the right-hand formatting pane, and select 'No Fill' to create a visual gap representing the break.

Frequently Asked Questions
Why are the times on my Excel timeline chart displaying as random numbers?
Spreadsheets store dates and times as serial numbers. To fix this, right-click the horizontal axis of your chart, select 'Format Axis', go to the 'Number' section, and change the category to 'Time' (e.g., h:mm AM/PM).
Can I use a Gantt chart template instead of building from scratch?
Yes. Both Microsoft Excel and WPS Office offer free Gantt chart and timeline templates. You can search for 'Gantt' in the built-in template library and modify the default columns to accommodate lunch break durations.
How do I make the chart only show working hours instead of a 24-hour clock?
Right-click the time axis on your chart and select 'Format Axis'. Under 'Axis Options', set the Minimum bound to your earliest schedule start time (e.g., 0.333 for 8:00 AM) and the Maximum bound to your latest end time (e.g., 0.75 for 6:00 PM).




