Chart & Visualization Issues

How to Create an Excel Timeline Chart with Lunch Breaks

Steven ParkerSteven Parker Nov 3, 2026 870 views

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.

How to Create an Excel Timeline Chart with Lunch Breaks
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.
Before you start

Ensure your scheduling data is cleanly organized into columns with a specific start time, break time, and end time for each employee or task.

Solution 1Recommended

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.

1
Set Up Your Schedule Data

Create headers for Shift Start, Break Start, Break End, and Shift End. Enter the corresponding times for each employee in the rows below.

2
Calculate Interval Durations

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`).

3
Insert a Stacked Bar Chart

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.

4
Hide the Start and Break Intervals

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.

Create a Stacked Bar Chart with Formula Data Preparation
Highlighting Coverage Gaps: Instead of setting the break duration series to 'No Fill', you can apply a distinct color (like light gray or red) to visually highlight when employees are unavailable.

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. 1. Open Your Schedule: Launch WPS Spreadsheet and open the document containing your shift scheduling data.
  2. 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. 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. 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.
Fully compatible with Microsoft Excel (.xlsx) formats, formulas, and charting features.Intuitive right-click formatting menus for customizing Stacked Bar charts and hiding data points.Free and lightweight software ideal for managing complex employee schedules and HR timelines.
microsoft office alternative - wps office

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).