Charting time in Excel is achieved by ensuring your time data is recognized as a "Time" or "Custom" number format rather than text, then selecting a Scatter or Line chart to plot those values. When Excel recognizes time correctly, it treats hours, minutes, and seconds as fractions of a day, allowing the software to space the data points proportionally along the horizontal axis.
What You'll Need
- Microsoft Excel (Desktop version recommended for full formatting options)
- A dataset containing time stamps (e.g., 08:00, 12:30, 17:15) or durations
- Corresponding values to plot against those times (e.g., temperature, sales, or speed)
Step-by-Step
- Prepare Your Data: Arrange your data in two columns. Place your time values in the left column (the X-axis) and your numerical data in the right column (the Y-axis). Ensure there are no empty rows or columns within the data range.
- Format the Time Column: Highlight the cells containing your time. Right-click the selection, choose Format Cells, and under the Number tab, select Time. Choose the format that best matches your data (e.g., 13:30). Note that menu labels may differ slightly depending on your version of Excel or region.
- Insert the Chart: Highlight both columns of data. Go to the Insert tab on the top ribbon. In the Charts group, select Insert Scatter (X, Y) or Bubble Chart. Choose the Scatter with Straight Lines and Markers or Scatter with Smooth Lines.
Note: Using a Line chart often treats time as "Categories" (labels) rather than "Values," which can lead to uneven spacing if your time intervals are inconsistent. A Scatter chart ensures the time is plotted mathematically. - Adjust the X-Axis Scale: If your chart looks squashed or starts at the wrong time, right-click the numbers on the horizontal (X) axis and select Format Axis. In the Axis Options pane:
- Minimum: Enter the start time. Because Excel treats 1 day as the value 1.0, you must enter times as decimals or use the format
=TIME(hour, minute, second)in a cell to find the decimal value. For example, 6:00 AM is 0.25. - Maximum: Enter the end time decimal.
- Units (Major): Set the interval for the gridlines (e.g., 0.04166 for 1-hour increments).
- Minimum: Enter the start time. Because Excel treats 1 day as the value 1.0, you must enter times as decimals or use the format
- Format the Axis Labels: While still in the Format Axis pane, scroll down to the Number section. Under Category, select Time and choose your preferred display format (e.g., HH:MM). This ensures the axis displays "14:00" instead of a decimal like "0.583".
- Add Labels and Titles: Click the Chart Elements button (the plus sign
+next to the chart) and check the boxes for Axis Titles and Chart Title. Click the titles on the chart to rename them.
Common Mistakes
- Entering Time as Text: Typing "8am" or "8 o'clock" instead of "8:00" causes Excel to treat the entry as text. Text cannot be plotted on a numerical axis, resulting in a blank chart or an error.
- Using a Line Chart instead of Scatter: A standard Line chart treats the X-axis as a list of labels. If you have data for 8:00, 8:05, and 10:00, a Line chart will place them at equal distances. A Scatter chart will correctly show a larger gap between 8:05 and 10:00.
- Mixing Date and Time: If some cells contain only time and others contain date and time (e.g., "1/1/2026 08:00"), the axis scale will break because the date adds a massive whole number to the value. Keep the format consistent.
Tips
- Quick Entry: Use the keyboard shortcut
Ctrl + Shift + :(colon) to quickly insert the current system time into a cell. - Duration Formatting: If you are charting total hours worked (which may exceed 24 hours), use the custom format
[h]:mm:ss. The square brackets tell Excel to accumulate hours rather than resetting to zero after every 24-hour cycle. - Dynamic Ranges: Convert your data range into an official Excel Table (
Ctrl + T) before creating the chart. This way, any new time entries you add to the bottom of the list will automatically appear on the chart.
Troubleshooting
If the chart does not display correctly, try these steps in order:
- Check for Text Strings: Select your time column and look at the bottom right of the Excel window. If it only shows "Count" and not "Average" or "Sum," your times are formatted as text. Re-type them using the
HH:MMformat. - Clear Formatting: Select the data, go to the Home tab, click Clear (the eraser icon), and select Clear Formats. Then, re-apply the Time format.
- Verify Axis Type: Right-click the X-axis > Format Axis. Ensure the "Axis Type" is set to Date axis or Automatic; if it is forced to "Text axis," the time spacing will be wrong.
- Reset Chart: If the chart behaves erratically after changing data, delete the chart and re-insert it using the Scatter plot option.
Frequently Asked Questions
Why are my time values showing up as decimals like 0.5 on the axis?
Excel stores time as a fraction of a 24-hour day. 0.5 represents half a day (12:00 PM). To fix this, right-click the axis, select Format Axis, and change the Number Category to Time.
Can I chart time that spans across midnight?
Yes, but you must include the date in the cell (e.g., "2026-12-04 23:00"). If you only use time, Excel will see 01:00 as being 22 hours before 23:00 on the same day, causing the line to jump backward.
How do I change the time intervals on the X-axis?
Right-click the X-axis, select Format Axis, and adjust the Major Units. Since time is decimal, use 0.04166 for 1 hour, 0.02083 for 30 minutes, or 0.00694 for 10 minutes.
What is the best chart for showing time-based trends?
The Scatter with Straight Lines is generally best because it maintains the mathematical relationship between time intervals, ensuring that the slope of the line accurately represents the rate of change.
Why is my chart blank even though I have data?
This usually happens when the X-axis "Minimum" and "Maximum" bounds are set incorrectly. Reset the axis bounds to Automatic in the Format Axis pane to see where your data points are currently landing.