+ Reply to Thread
Results 1 to 3 of 3

Creating a gap function between 2 time stamps and changing that to minutes

  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    Moline, IL
    MS-Off Ver
    Excel 2007
    Posts
    9

    Creating a gap function between 2 time stamps and changing that to minutes

    Hi,

    I am trying to convert a time data type into a gap time. Right now I have 2 time stamps that I can take the difference of to get another "time stamp". I need to convert this to decimal minutes, but I am having trouble using the LEFT and MID functions to do this, possibly because the data is a time type. Is there a way I can change a time data type that displays 00:30:56 to be 30.93? I tried

    Please Login or Register  to view this content.
    But I am not getting the answer I need. If H3 was 00:30:56 in this formula I would get an outcome of 22.35 instead of 30.93. What am I doing wrong? Please help.
    Last edited by bigern87; 09-11-2012 at 03:47 PM.

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676

    Re: Creating a gap function between 2 time stamps and changing that to minutes

    Your formula works if H3 is text but when it's a time the underlying value isn't 00:30:56 but the decimal equivalent, so your MID function doesn't work. Simpler just to multiply by 1440 (the number of minutes in a day), i.e. try

    =H3*1440

    ....and format result cell as number
    Audere est facere

  3. #3
    Registered User
    Join Date
    08-31-2012
    Location
    Moline, IL
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Creating a gap function between 2 time stamps and changing that to minutes

    Thank you for your help. Exactly the information I needed.

+ 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