Solved

Excel Formula for adding Timecode

Posted on 2011-02-24
4
678 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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

724 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