+ Reply to Thread
Results 1 to 7 of 7

difference between two times

Hybrid View

  1. #1
    Registered User
    Join Date
    11-27-2005
    Posts
    18

    difference between two times

    Hi Guys,

    I'm really sorry to bother you but I'm trying to see if you can help me please.. I have attached the demo spreadsheet I'm trying to work with however what I'm trying to see is the difference from when the team member logs out and logs back in.

    In the example posted I'm trying to get the difference from cell c1 to when they log back in b2.


    I have been reading forums but still no luck I'm not sure if it's the AM and PM thing or what but I still can't seem to get it.. sorry to bother you.

    Thanks in advance

    Ads
    Attached Files Attached Files
    Last edited by Reign; 02-09-2012 at 10:59 PM. Reason: problem solved

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: difference between two times

    Try this in D1:
    =IF(A1<>A2,"",TIMEVALUE(LEFT(B2,LEN(B2)-2))-TIMEVALUE(LEFT(C1,LEN(C1)-2)))
    Copy down
    Quang PT

  3. #3
    Registered User
    Join Date
    11-27-2005
    Posts
    18

    Re: difference between two times

    Hi Bebo nah the answer from C1 to b2 should be 8 mins but I get with that equation 0.005555556

    Sorry it didn't work.

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: difference between two times

    0.005555556 equals 8 minutes.

    Change the cell format to "Time".
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  5. #5
    Registered User
    Join Date
    11-27-2005
    Posts
    18

    Re: difference between two times

    Well don't I feel like a little special person OMG thank you both so much..

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: difference between two times

    Sorry that there is something wrong with my previous formula, e.g. if logs out is 12:59PM and logs back in is 1:00PM.
    This may correct:
    =IF(A1<>A2,"",TIMEVALUE(LEFT(B2,LEN(B2)-2)&" "&RIGHT(B2,2))-TIMEVALUE(LEFT(C1,LEN(C1)-2)&" "&RIGHT(C1,2)))

  7. #7
    Registered User
    Join Date
    11-27-2005
    Posts
    18

    Re: difference between two times

    lol thanks heaps bebo I was about to come back and try and ask that question as I have completed most of the project till I came up to that problem

    thanks again

+ 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