+ Reply to Thread
Results 1 to 9 of 9

Calculate time diff in yyyy-mm-dd-hh:mm format

  1. #1
    Registered User
    Join Date
    12-22-2009
    Location
    Pune, India
    MS-Off Ver
    Excel 2003
    Posts
    30

    Calculate time diff in yyyy-mm-dd-hh:mm format

    how do u find difference between 2 times in yyyy.mm.dd hh:mm format in excel 07, i've spent hrs trying to reformat the cells, tried every concoction and all i keep getting is #VALUE!


    col A
    2010-12-27-06:27
    2010-12-27-08:45
    2010-12-27-09:37
    2010-12-27-10:33



    col B
    2010-12-27-08:10
    2010-12-27-09:15
    2010-12-27-10:29
    2010-12-27-13:38


    and i'm trying to subtract A from B but getting nowhere, i'm trying to get the answer in dd-hh:mm
    i'm looking for the time elapsed.


    thanks for any help anyone can give
    Last edited by PooH; 07-09-2011 at 01:11 PM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Calculate time diff in yyyy-mm-dd-hh:mm format

    Normally B-A would do.
    To be sure, post a sheet with the data ( or a sample)

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Calculate time diff in yyyy-mm-dd-hh:mm format

    Try
    Please Login or Register  to view this content.

    EDIT : the "*1" are not necessary
    Please Login or Register  to view this content.
    Last edited by arthurbr; 07-09-2011 at 12:50 PM.

  4. #4
    Registered User
    Join Date
    12-22-2009
    Location
    Pune, India
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Calculate time diff in yyyy-mm-dd-hh:mm format

    I am attaching the sample data sheet for more clear undersatnding.....
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Calculate time diff in yyyy-mm-dd-hh:mm format

    Try the formula I posted under #3

  6. #6
    Registered User
    Join Date
    12-22-2009
    Location
    Pune, India
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Calculate time diff in yyyy-mm-dd-hh:mm format

    Hi arthurbr,

    Thanks for the reply but the given formula does not work....

  7. #7
    Registered User
    Join Date
    12-22-2009
    Location
    Pune, India
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Calculate time diff in yyyy-mm-dd-hh:mm format

    I tried the formula posted under #3 but still it is not able to calculate elapsed time.....

  8. #8
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Calculate time diff in yyyy-mm-dd-hh:mm format

    That is normal, because you changed the format between your original post and the sheet you provided
    This should do

    Please Login or Register  to view this content.
    EDIT Then format as you need
    Last edited by arthurbr; 07-09-2011 at 01:04 PM.

  9. #9
    Registered User
    Join Date
    12-22-2009
    Location
    Pune, India
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Calculate time diff in yyyy-mm-dd-hh:mm format

    This is awesome...this is exactly what i was looking for.

    Thanks arthurbr for your help.....

+ 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