+ Reply to Thread
Results 1 to 6 of 6

Date, Time calculation

  1. #1
    Registered User
    Join Date
    12-29-2008
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Date, Time calculation

    Hello,

    Can u help me in solving this problem,

    There are two columns StartTime, Duration. Format is given below.

    1) Add the duration to the start time and place the value in the next row.
    2) Duration contains frame as the last value. If the value of frame is 24 then add 1 sec to the start time in the next row.

    (A) (B)
    StartTime(hh:mm:ss) Duration(hh:mm:ss:frame)
    00:40:30 00:00:30:10
    00:41:00 00:00:30:14
    00:41:31


    - Thanks in advance,
    Vel

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    Vel, not entirely sure I understand -- if we assume your sample represents A1:B4 where A1:B1 = headers... is your formula meant to go into A3 onwards ? I am also confused re: your statement regards Frame -- looking at your sample it seems your final value (00:41:31) has aggregated the Frame of the preceding two duration values such that 1 second has been added (10 + 14) -- else by my reckoning the final value should be 00:41:30, ie:

    A4: =A3+(LEFT(TRIM(B3),8))+((--RIGHT(TRIM(B3),2)=24)/86400)

  3. #3
    Registered User
    Join Date
    12-29-2008
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question

    0:40:30(A1) 00:00:30:10(B1)
    0:41:00(A2) 00:00:30:14(B2)
    0:41:31(A3) 00:00:30:15(B3)

    I will enter the values for A1 and B1. Based on those values A2 should be calculated. Again if I enter value for B2, the A3 value should be populated. Apart from normal time addition, I need to add frame. If sum of frame value is 24, 1 sec should be added to next ‘A’ row value

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    Excuse my ignorance but what is the range for Frame values ?

    If Frame for ex. can exceed 48 in any one given duration value would you add 2 seconds... presumably also you mean sum of time frame value >= 24 add 1 second ?

    For ex. consider:

    A1: = 00:40:30

    Then B1:B6:

    00:00:30:10 0
    00:00:30:14 1
    00:00:30:10 0
    00:00:30:10 0
    00:00:30:10 1 6 remainder
    00:00:30:20 1 20 + remainder: carry over 2

    The values to the right of B equate to my question re: sum of FRAME and addition of second requirement...

    If you consider also B7:

    00:00:30:50

    is the seconds here really: INT(sum(frame)/24) ?

    What you can do is achievable but we must ensure we have the logic tied down.

  5. #5
    Registered User
    Join Date
    12-29-2008
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Thumbs up

    Max frame size is 48. Thanks for ur reply.. Its working for me.

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    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
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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