+ Reply to Thread
Results 1 to 5 of 5

Automated substraction of time

  1. #1
    Registered User
    Join Date
    02-01-2011
    Location
    Odzaci, Serbia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Automated substraction of time

    This my problem:I got exel sheet which is populated from .txt file a list of song names,artists, start time of song.My problem is how to get duration of each song in separate column labeled duration by substraction B5-B4, B6-B5 and so on, but in somehow in automated sense, because i got several thousend song.
    Example sheet:
    A B C D
    Start Artist Song Title Duration

    0:50:37 REM Pop Song ?
    0:53:50 Gang of Four Man in Uniform ?

    Thanks
    Last edited by NBVC; 02-01-2011 at 03:23 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Automated substraction of time

    If you enter:

    =B5-B4

    then you can easily copy that down the column by click and dragging the little black box at the bottom right corner of the cell that you enter the formula in... the cells will automatically increase as you copy down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-01-2011
    Location
    Odzaci, Serbia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Automated substraction of time

    thanks a lot, Best regards

  4. #4
    Registered User
    Join Date
    02-01-2011
    Location
    Odzaci, Serbia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Automated substraction of time

    This works well, but problem is when i reach to "end of a day":
    A B C D
    Start Artist Song Title Duration

    23:58:37 REM Pop Song ?
    00:03:50 Gang of Four Man in Uniform ?

    Then result in column is ##########

    How to fix this?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Automated substraction of time

    Perhaps:

    =IF(B5="","",B5-B4)

    This will leave cell blank.

    Does that work?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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