+ Reply to Thread
Results 1 to 7 of 7

Adding time in excel.

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    Denver
    MS-Off Ver
    Excel 2007
    Posts
    2

    Adding time in excel.

    Hello

    Im trying to add call time that I pull for my sales team. The format it comes out in excel is HH:MM:SS if they had a total talk time of more then an hour. If they only taked for says 45 minutes it comes in like this :45:00.

    The problem I am having is that I can sum everything that is formated comes in as 00:00:00 but not if its :00:00. I put an example below. It sums the first two but not the second to. So far the only fix I have is manually putting an a 0 in front. Which really is time consuming for the volume I work with. Any suggestions on how to get it to sum or convert to a 00:00:00 format.



    Rep 1 1:00:00
    Rep 2 1:23:51
    Rep 3 :07:51
    Rep 4 :40:20
    Sum 2:23:51

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Adding time in excel.

    If you have data in A1:A10 try this formula to sum

    =SUMPRODUCT((0&A1:A10)+0)

    format result cell as [h]:mm:ss
    Audere est facere

  3. #3
    Registered User
    Join Date
    10-16-2012
    Location
    Denver
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Adding time in excel.

    Wow, thanks so much that worked perfect. The more I work with excel I realize there is not always a magic formula but a formulas altered to the way you need the to work. Can you explain how this foruma works? I have never used SUMproduct before.

  4. #4
    Registered User
    Join Date
    10-14-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Adding time in excel.

    Hi Daddy

    It is working, Can you explain this forumla.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Adding time in excel.

    The formula is just concatenating 0 to the front of the times, i.e. 0&A1:A5 - that won't alter the value of a valid time or a blank cell but it makes a text string like :40:20 look like a valid time value, i.e. 0:40:20......but that's still a text string so the +0 "co-erces" the text string that looks like a time into a real time.

    All we need to do then is to sum the results so

    =SUM((0&A1:A10)+0)

    will work......but that's is an "array formula" that needs to be entered with CTRL+SHIFT+ENTER. Using SUMPRODUCT instead of SUM means you don't need that key combination....

  6. #6
    Registered User
    Join Date
    10-14-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Adding time in excel.

    Thanks a lot!

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Adding time in excel.

    @ AsifSayed

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1