Showing Elapsed Time in a Graph

Written by Allen Wyatt (last updated September 23, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


1

Hazel has a worksheet consisting of three columns: A contains a start time, B an end time, and C an elapsed time (B-A). She would like to create a graph that illustrates the elapsed times in column C, but she can't seem to get it to work. Hazel wonder is there is a trick to doing this, or if she needs to do some sort of conversion on the elapsed time first.

You should have no problem displaying elapsed time within a chart. The key, however, is to make sure you actually format the column as elapsed time and then specify that you want that time displayed in your chart.

To accomplish the first element, follow these steps:

  1. Select the cells in column C.
  2. Press Ctrl+1. Excel displays the Format Cells dialog box. (See Figure 1.)
  3. Figure 1. The Format Cells dialog box.

  4. In the Category list (left side) choose Time.
  5. In the Type box, choose 37:30:55 as the type.
  6. Click on OK.

Your column now shows the correct times as elapsed hours, minutes, and seconds. You can now move on to the second element, which is making sure that your elapsed times are displayed in your chart. The easiest way to do this is to simply select a cell in your data, and then press F11. Excel creates a brand-new chart based on your data. If the data is just as Hazel described, this will be a simple column chart. The chart will be unusable, however, because it contains too much data.

To get around this, click the Select Data tool. (This tool is on the Chart Design tab of the ribbon.) Excel displays the Select Data Source dialog box. (See Figure 2.)

Figure 2. The Select Data Source dialog box.

At the left side of the dialog box there is a very good chance that all of the check boxes are selected because Excel assumed you wanted all of the data charted. Hazel, though, wants only the elapsed time charted. So, clear all of the check boxes at the left side of the dialog box, with the exception of the column that contains your elapsed time. When you click on OK, your chart is refreshed so that it only contains elapsed times along the Y (vertical) axis.

At this point you can change your chart type as desired or format your chart to appear just the way you want.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10337) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Stopping Date Parsing when Opening a CSV File

Excel tries to make sense out of any data that you import from a non-Excel file. Sometimes this can have unwanted ...

Discover More

Changing References in a Lot of Defined Names

Need to change some cell references in your defined names? Changing one or two is easy; changing dozens is a good deal ...

Discover More

Cannot Use Dotted Diagonal Borders

Excel allows you to apply borders to cells, including with the cells. However, understanding the effects of the borders ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (ribbon)

Changing Y-Axis Label Width

Excel provides quite a bit of flexibility in how your chart looks. One of the least flexible places is in adjusting the ...

Discover More

Labeling X-Y Scatter Plots

Figuring out how to get the data points in an X-Y scatter plot labeled can be confusing; Excel certainly doesn't make it ...

Discover More

Sorting within a Chart

When creating a chart based on data in a worksheet, you may want to sort the information in the chart without rearranging ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two more than 7?

2023-09-24 05:28:24

Mike J

In Excel 2010, if the Locale in Format cells Time is set to English(UK) then the selection 37:30:55 (i.e. more than 24 hours) is unavailable and time differences over 24 hours are calculated incorrectly. Changing to English(United States) works, but also changes the date format.

However using the Custom Format [h]:mm:ss seems to work with both Locales.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.