+ Reply to Thread
Results 1 to 8 of 8

Formula for subtracting and adding timecode

  1. #1
    Registered User
    Join Date
    02-16-2011
    Location
    CA, USA
    MS-Off Ver
    Excel 2008 Mac
    Posts
    13

    Formula for subtracting and adding timecode

    Hi,

    I'm working with a large volume of timecode in both 25fps and 30fps (29.97 to be exact).

    It looks like this:
    (Column A) (Column B) (Column C)
    00:00:11:07 00:00:13:08
    00:00:14:03 00:00:15:11
    00:00:16:15 00:00:17:19
    00:00:18:18 00:00:20:03
    00:00:22:07 00:00:25:10

    I need to subtract Column A from Column B to get the "duration" for each set.
    Then, at the end, I need to add up all the duration timecode in Column C to get the "total duration" all in the same format, meaning HH (hour):MM (minute):SS(second):FF(frame).

    I would appreciate it if someone could show me what each formula would be for getting the "duration" AND "total duration" and in different frame rate.

    THANK YOU!
    Last edited by hbsunshine; 02-17-2011 at 12:29 PM.

  2. #2
    Registered User
    Join Date
    02-16-2011
    Location
    CA, USA
    MS-Off Ver
    Excel 2008 Mac
    Posts
    13

    Re: Formula for subtracting and adding timecode

    I have created a mock worksheet.

    Each cell in Column A and Column B will have HH (hour):MM (minute):SS(second):FF(frame).

    I need the duration (Column C) which should be Column B minus Column A as well as the total duration after all the individual duration is calculated.
    I highlighted the cells that I would like to get the results for in yellow.

    This sample timecode is 24 fps (but I sometimes need to change it to 25 or 30 fps).
    In the 24fps format, the frame count goes up to 23 and it switches to 24.
    In 25 it goes up to 24, while it goes up to 29 in 30 fps.

    Thank you so much for your help
    Attached Files Attached Files
    Last edited by hbsunshine; 02-17-2011 at 12:25 AM. Reason: I wanted to add more description of what I need.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula for subtracting and adding timecode

    I'd suggest using a single cell to store the fps value, eg:

    Please Login or Register  to view this content.
    Then:

    Please Login or Register  to view this content.
    for total duration

    Please Login or Register  to view this content.
    as you alter F1 so the results should adjust

    Note: the above utilises DOLLARFR function which pre XL2007 requires the Analysis ToolPak Add-In be activated (Tools -> Add-Ins)

    Attached is a working version of the above
    Note: columns I:M simply reflect a "proof" table and are not used in the calculations taking place in C

    The above is just one approach - there will be others - no doubt more elegant.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-16-2011
    Location
    CA, USA
    MS-Off Ver
    Excel 2008 Mac
    Posts
    13

    Re: Formula for subtracting and adding timecode

    Thank you very much for your help!
    Since I'm still learning, it will take a while to study this, but I can see I get the results that I need.
    So, that's a good thing. Thanks again!

  5. #5
    Registered User
    Join Date
    02-16-2011
    Location
    CA, USA
    MS-Off Ver
    Excel 2008 Mac
    Posts
    13

    Re: Formula for subtracting and adding timecode

    Sorry for the trouble... but could you tell me how to make this thread "solved"? I'm new to the forum and I'm still a little slow in navigating through this site.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula for subtracting and adding timecode

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  7. #7
    Registered User
    Join Date
    02-16-2011
    Location
    CA, USA
    MS-Off Ver
    Excel 2008 Mac
    Posts
    13

    Re: Formula for subtracting and adding timecode

    Thank you for your patience!

  8. #8
    Registered User
    Join Date
    02-16-2011
    Location
    CA, USA
    MS-Off Ver
    Excel 2008 Mac
    Posts
    13

    Re: Formula for subtracting and adding timecode

    I found the following functions online. Could you kindly take a look at the attached sample file and provide me with the formula for the total duration (orange cell)? I would appreciate it very much.

    30FPS

    =TEXT(LEFT(B2,8)-LEFT(A2,8)-(RIGHT(A2,2)>RIGHT(B2,2))/86401,"m:ss")&TEXT(MOD(RIGHT(B2,2)-RIGHT(A2,2),30),"\:00")


    24FPS
    =TEXT(LEFT(B2,8)-LEFT(A2,8)-(RIGHT(A2,2)>RIGHT(B2,2))/86400,"m:ss")&TEXT(MOD(RIGHT(B2,2)-RIGHT(A2,2),24),"\:00")
    Last edited by hbsunshine; 03-06-2011 at 12:14 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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