Solved

Excel Formula for adding Timecode

Posted on 2011-02-24
4
541 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
  • 2
  • 2
4 Comments
 
LVL 50

Expert Comment

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

barry
0
 

Author Comment

by:EBrenner
Comment Utility
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
Comment Utility
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
Comment Utility
Amazing!  Thanks Barry!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now