Solved

# How to sum duration times in (hh:mm:ss) format

Posted on 2014-11-24
650 Views
Hello again, Experts:

Call-Summary-by-Extension-111-EE-11-24-1I need a formula that will total duration times in hh:mm:ss format.  See sample attached.  Hoping you can help.

Thanks,
Gary - cincinnati
0
Question by:garyrobbins

LVL 18

Accepted Solution

ID: 40463387
I can't quickly think of a way to sum the column you specify (it is text), but the "duration in seconds" colums can be easily summed and formatted as hh:mm:ss.
This calculates the total duration for your example worksheet as 102 hours, 29 minutes and 46 seconds
1. Sum and convert to seconds to  days (in Excel, 1 day = 1.0)
=SUM(H2:H226)/60/60/24

2. Then choose custom format for the result cell. This format displays values that exceed one day in hh:mm:ss.
[h]:mm:ss

Edit: On second thoughts, you CAN sum the column you asked for by using an array formula:
{=SUM(VALUE(G2:G226))}
and then formatting as described above [h]:mm:ss

On the Mac I'm sitting at now I have to use Command+Shift+Enter to create the array formula (you can't manually type the curly braces). On Windows it is CTRL+SHIFT+ENTER.
0

LVL 23

Expert Comment

ID: 40463655
First format the cells to be summed to the following

[h]:mm:ss

Then you can just use =SUM(H2:H226).

Ensure that the result cell is also formatted as [h]:mm:ss
0

Author Closing Comment

ID: 40464581
Fast and Simple...

I love EE.
0

## Featured Post

### Suggested Solutions

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.