+ Reply to Thread
Results 1 to 3 of 3

Time and Date

  1. #1
    Registered User
    Join Date
    05-13-2006
    Posts
    27

    Arrow Time and Date

    well i have data like this in four cells

    date1 time1 date2 time2

    this data is in different cells . is it possible that i can have some formula which could actually count the difference between two times .. in hours/minutes/seconds .. considering the date aswell since time1 is on date1 and time2 is on date2 .. so all i need is the duration inbetween time1 and time2

    Regards

  2. #2
    ADG
    Guest

    RE: Time and Date

    Hi Dastard

    If your data is in A1 to D1 the below will give you whole days

    =INT(((A1+B1)-(C1+D1)))

    and the below will give the hours (remenber to format this cell for time)

    =MOD(((A1+B1)-(C1+D1)),1)
    --
    Tony Green


    "Dastard" wrote:

    >
    > well i have data like this in four cells
    >
    > date1 time1 date2 time2
    >
    > this data is in different cells . is it possible that i can have some
    > formula which could actually count the difference between two times ..
    > in hours/minutes/seconds .. considering the date aswell since time1 is
    > on date1 and time2 is on date2 .. so all i need is the duration
    > inbetween time1 and time2
    >
    > Regards
    >
    >
    > --
    > Dastard
    > ------------------------------------------------------------------------
    > Dastard's Profile: http://www.excelforum.com/member.php...o&userid=34406
    > View this thread: http://www.excelforum.com/showthread...hreadid=548867
    >
    >


  3. #3
    Bob Phillips
    Guest

    Re: Time and Date

    Use =C1-A1-B1+D1 and format the cell as [h]:mm:ss

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Dastard" <[email protected]> wrote in
    message news:[email protected]...
    >
    > well i have data like this in four cells
    >
    > date1 time1 date2 time2
    >
    > this data is in different cells . is it possible that i can have some
    > formula which could actually count the difference between two times ..
    > in hours/minutes/seconds .. considering the date aswell since time1 is
    > on date1 and time2 is on date2 .. so all i need is the duration
    > inbetween time1 and time2
    >
    > Regards
    >
    >
    > --
    > Dastard
    > ------------------------------------------------------------------------
    > Dastard's Profile:

    http://www.excelforum.com/member.php...o&userid=34406
    > View this thread: http://www.excelforum.com/showthread...hreadid=548867
    >




+ 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