Closed Thread
Results 1 to 5 of 5

Formula to calculate time

  1. #1
    Registered User
    Join Date
    02-24-2016
    Location
    Brisbane
    MS-Off Ver
    excel for mac 2007
    Posts
    4

    Smile Formula to calculate time

    Hi,

    I'm trying to get a formula to calculate the time in seconds to the third decimal place from the following data.

    It's an export from a video editing program.



    The marker start time is calculated by dividing the number after the first " by the number after the /

    eg, on the first line reads marker start="29/15s" - result is 1.933

    It's duration is calculated by doing the same process on the line below marker start="56/15s" - result is 3.733

    Duration is obviously the difference between the two.

    I've added three columns on the end to indicate how I would like the result to display. 1st column is Start Time, 2nd is Duration, 3rd is End Time


    Thanks very much in advance,



    Alan

    PS I have attached the excel spreadsheet - Thanks to Pete for the tip



    marker start="29/15s" duration="100/3000s" value="Marker 102"/> 1.933 1.800 3.733
    marker start="56/15s" duration="100/3000s" value="Marker 103"/>
    marker start="83/15s" duration="100/3000s" value="Marker 3"/>
    marker start="106/15s" duration="100/3000s" value="Marker 4"/>
    marker start="41/5s" duration="100/3000s" value="Marker 5"/>
    marker start="281/30s" duration="100/3000s" value="Marker 6"/>
    marker start="49/5s" duration="100/3000s" value="Marker 100"/>
    marker start="298/15s" duration="100/3000s" value="Marker 7"/>
    marker start="316/15s" duration="100/3000s" value="Marker 8"/>
    marker start="131/6s" duration="100/3000s" value="Marker 9"/>
    marker start="137/6s" duration="100/3000s" value="Marker 10"/>
    marker start="709/30s" duration="100/3000s" value="Marker 11"/>
    marker start="122/5s" duration="100/3000s" value="Marker 12"/>
    marker start="379/15s" duration="100/3000s" value="Marker 13"/>
    marker start="79/3s" duration="100/3000s" value="Marker 14"/>
    Attached Files Attached Files
    Last edited by alcurtis; 02-24-2016 at 08:49 PM. Reason: Attached Excel Spreadsheet

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,725

    Re: Formula to calculate time

    To avoid contributors having to type that sample data into a blank sheet before they can even start to work out a solution, you will get a better response if you attach a sample Excel workbook with the data already in it - the FAQ describes how you can attach a file to one of your posts.

    Pete

  3. #3
    Registered User
    Join Date
    02-24-2016
    Location
    Brisbane
    MS-Off Ver
    excel for mac 2007
    Posts
    4

    Re: Formula to calculate time

    Thanks Pete,

    I have attached the spreadsheet

    Much appreciated,

    Alan

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,725

    Re: Formula to calculate time

    It would appear that your data starts on row 32 and you want to get data from alternate rows, i.e. for markers 102/103, then 3/4, and 5/6. However, your 7th entry on row 38 has a Marker of 100, but there is no corresponding Marker 101 - instead we then have the pairs 7/8, 9/10 and so on. I can see that this will cause difficulties with a formula which is using even-numbered rows to determine the start time and odd-numbered rows to determine the end time. Is this typical of your data, or is this just an erroneous entry?

    Pete

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Formula to calculate time

    OP has reposted in Commercial Forum. This thread will be closed and OP will continue in the Commercial Forum
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Time Formula, time it takes to calculate
    By sans in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-16-2023, 08:23 AM
  2. Replies: 2
    Last Post: 11-13-2015, 07:47 PM
  3. Excel Formula to Calculate Time Span Between Different Time Range.
    By omershafiq2012 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-06-2015, 08:28 AM
  4. Replies: 3
    Last Post: 12-19-2013, 06:49 AM
  5. Replies: 2
    Last Post: 04-27-2011, 08:21 AM
  6. Replies: 2
    Last Post: 01-18-2005, 10:06 AM

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