+ Reply to Thread
Results 1 to 8 of 8

Converting and calculating average elapsed time

  1. #1
    Registered User
    Join Date
    04-28-2010
    Location
    ames, ia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Converting and calculating average elapsed time

    I'm trying to use Excel to calculate the average elapsed time (in seconds) it takes a student to perform an online exercise delivered via a web-based learning management system. The format in which elapsed time is reported in this sytem is a string such as "1 min 20 secs", "19 mins 01 sec" or "45 secs". (See attached worksheet.)

    Which Excel format (e.g. mm:ss) would be most appropriate for performing such a calculation, and could anyone help with a formula to convert these strings into the appropriate format?

    Many thanks in advance.
    Attached Files Attached Files
    Last edited by jamminalley; 05-04-2010 at 04:55 PM.

  2. #2
    Forum Contributor
    Join Date
    02-25-2010
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    174

    Re: Converting and calculating average elapsed time

    Put this function in a cell (B23), copy it the amount of columns you have over, and then the amount of rows down.

    Please Login or Register  to view this content.
    Convert it back after you have a calculation.

    Note: This converts everything, in a makeshift way, to minutes.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Converting and calculating average elapsed time

    what function is that then? ha ha now it's there lol
    Last edited by martindwilson; 05-04-2010 at 04:43 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    02-25-2010
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    174

    Re: Converting and calculating average elapsed time

    Well the appropriate answer, if this was a programming forum, would say to make the back end application handle the formatting. Excel is not really meant to do data cleansing, it is the end user interface.

    Oh! haha yes I didnt put any function up, it was a mistake
    Last edited by DP978; 05-04-2010 at 04:47 PM.

  5. #5
    Registered User
    Join Date
    04-28-2010
    Location
    ames, ia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Converting and calculating average elapsed time

    Many thanks, DP978.

    Actually, I've had a post about this on the back end-application's user forum for a while now, but it's much less active than this one.

    Instead of converting back to "X mins Y secs", how to go from minutes-in-decimals to mm:ss format?

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

    Re: Converting and calculating average elapsed time

    You could use DP978's formula and then just divide by 1440 (number of minutes in a day), i.e.

    =(IFERROR(MID(B2,1,FIND(" min",B2)),0) + IFERROR((MID(B2,FIND(" sec",B2)-2,2)/60),0))/1440

    format result cell as [mm]:ss

  7. #7
    Registered User
    Join Date
    04-28-2010
    Location
    ames, ia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Converting and calculating average elapsed time

    Terrific! Thanks, daddylonglegs.

  8. #8
    Registered User
    Join Date
    03-12-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Converting and calculating average elapsed time--need nelp

    sorry I have this simple spreadsheet--so I thought

    I need to average the "elapsed time from 1st contact column"

    any help is appreciated as this is due in 3 hours and I still have to graph it out

+ 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