+ Reply to Thread
Results 1 to 5 of 5

Calculating a Run Time from values

  1. #1
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,163

    Calculating a Run Time from values

    I have only found info on "time stamps" in excel, I am trying to take a series of time values and add them to find the "Run Time" of an application.
    Example out put value Ignore anything in brackets():
    Time
    12:43:01:297 (Start)
    Time
    13:30:14:852 (Pause)
    13:30:20:770 (Restart)
    Time
    13:31:44:611 (Pause)
    13:32:38:698 (Restart)
    Time
    14:15:13:722 (End)
    Total Run Time = ?
    All of the data is in column A, the word "Time" is a word used to "find" the time strings with in another file, it can be ignored.

    I am only concerned with hh:mm:ss the remaining value can be ignored.

    Any hints, tips or examples are welcome.
    Regards

    Rick
    Win10, Office 365

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculating a Run Time from values

    If you convert the times to something Excel recognizes, and the parenthetic stuff is is a separate column, then

    =SUMIF(B1:B10, {"(End)","(Pause)"}, A1:A10) - SUMIF(B1:B10, {"(Start)","(Restart)"}, A1:A10) returns 01:32:12

    Please Login or Register  to view this content.
    Last edited by shg; 03-20-2010 at 12:52 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,163

    Re: Calculating a Run Time from values

    Thnak you, I will continue with your suggestion and example on Monday.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculating a Run Time from values

    I used text to columns to separate the time string from the event type, and a formula to convert the time string to an Excel time. The elapsed time formula in the example is different from the formula in the post (it uses col C for the times).

    Holler back if you have problems.

  5. #5
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,163

    Re: Calculating a Run Time from values

    Formulas! Argh!
    Something is lost in translation. LOL

    I attached a couple files, Column A is added, Column B is as imported.
    The number of rows will vary.
    Sheet1 is my data, ignore sheet 2, sheet3 is where I tried to duplicate your formula scenerio.

    Any hints, tips or examples are welcome.

    With one of your formulas
    Please Login or Register  to view this content.
    I get #VALUE on rows 26 and 29?
    Edit: Figured that out, your code seems to want specific character length such as:
    14:13:28:000
    rather than
    14:13:28:00
    Attached Files Attached Files
    Last edited by Rick_Stanich; 03-22-2010 at 09:48 AM.

+ 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