?
Solved

Excel Formula for adding Timecode

Posted on 2011-02-24
4
Medium Priority
?
745 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 2000 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 IT Pros

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

762 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