Solved

Excel Formula for adding Timecode

Posted on 2011-02-24
4
647 Views
Last Modified: 2012-06-27
Hi,
I need to add video timecodes.  I have a list of inpoints and corresponding durations, and I am trying to calculate the corresponding endpoints.
For example:

COL A             COL B             COL C
START            DURATION     END (This is the column to generate)
00:00:57:12      00:00:03:04      1:01:16
00:01:45:12      00:00:01:13      1:46:25

I found the following formula which would go in cell C3:
=TEXT(LEFT(B3,8)+LEFT(A3,8)+(RIGHT(A3,2)>RIGHT(B3,2))/86401,"m:ss")&TEXT(MOD(RIGHT(B3,2)+RIGHT(A3,2),30),"\:00")
However, it's not always right.  For example, the 'END'  1:01:16 above should really be 1:00:16.
The second one is correct.

Thanks so much for any help!

Evan
0
Comment
Question by:EBrenner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 50

Expert Comment

by:barry houdini
ID: 34974160
Are these hours, minutes, seconds and frames with 30 frames per  second?

barry
0
 

Author Comment

by:EBrenner
ID: 34974210
Sorry, they are:

HH:MM:SS:FF  (Where FF is frames)

Rate is 30 frames per second.  Under column C in my example, I left out HH:M but it won't let me edit now.
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 34974335
Try this version for C3 copied down following that method to give you a text value

=TEXT(LEFT(A3,8)+LEFT(B3,8)+(RIGHT(A3,2)+RIGHT(B3,2)>=30)/86400,"m:ss:")&TEXT(MOD(RIGHT(A3,2)+RIGHT(B3,2),30),"00")

or a shorter alternative which is actually a time value...(which excel views as h:mm:ss but you can treat as m:ss:ff)

=RIGHT(A3,8)+RIGHT(B3,8)+(SECOND(RIGHT(A3,8)+RIGHT(B3,8))>=30)/2880

you could easily convert the latter to text, too by wrapping in a TEXT function

see attached for both

regards, barry
26846078.xls
0
 

Author Closing Comment

by:EBrenner
ID: 34974391
Amazing!  Thanks Barry!
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question