+ Reply to Thread
Results 1 to 5 of 5

Sum of Elapsed Time involving comma

  1. #1
    Registered User
    Join Date
    05-22-2014
    Posts
    13

    Sum of Elapsed Time involving comma

    Hello, I have been currently working with Data in which involves time over 24 hours and I am trying to find the sum of these numbers. An example would be the following : 4,889:38:33 + 4,711:28:37 + 4,851:11:26 . Of course, I have removed the comma and changed format, this did correct the issue. However, I was wondering is there a way to find the sum with the comma still involved.


    Please Advise

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sum of Elapsed Time involving comma

    A comma is a formatting character. It should never actually be IN the numeric values entered. Your solution of removing the commas is the correct one.
    Last edited by JBeaucaire; 08-12-2014 at 10:20 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum of Elapsed Time involving comma

    If the data (with the comma) is actually TEXT...

    Data Range
    A
    1
    2
    4,889:38:33
    3
    4,711:28:37
    4
    4,851:11:26
    5
    6
    7
    14452:18:36


    =SUMPRODUCT(--SUBSTITUTE(A2:A4,",",""))

    Format as [h]:mm:ss
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    05-22-2014
    Posts
    13

    Re: Sum of Elapsed Time involving comma

    Tony, I went ahead and tried your method but it did not seem to work. Is there something I am doing incorrectly? I even tried your example on a brand new sheet.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum of Elapsed Time involving comma

    Not sure I understand what you're trying to achieve.

    Based on the sample data in post #3, what result do you expect?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Converting an elapsed time in decimal number format to an actual time :S
    By Spicey_888 in forum Excel General
    Replies: 3
    Last Post: 07-20-2014, 08:53 PM
  2. Replies: 2
    Last Post: 04-19-2012, 10:34 PM
  3. Using start/end time fields on userform to populate elapsed time on spreadsheet
    By Lothar69 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2011, 05:07 PM
  4. Replies: 2
    Last Post: 04-27-2011, 08:21 AM
  5. replace the comma separator to a dot and dot to a comma at the same time
    By barkiny in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-24-2010, 05:42 PM

Tags for this Thread

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