+ Reply to Thread
Results 1 to 3 of 3

Converting number to time HH:MM:SS

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Converting number to time HH:MM:SS

    I should know how to do this but I can't figure it out. I am getting a feed from IT with following information for example. Just can't seem to format the information as I want to.

    Column A Column B
    113700 113621
    161153 161002

    I need to convert both to time. It results should look like below
    Column A Column B
    11:37:00 11:36:21
    16:11:53 16:10:50

    After this is completed, I then need to find the difference in minutes between the two columns. For example the difference of first two numbers is:
    11:37:00 - 11:36:21 = 00:00:39
    Column C
    00:00:39

    The difference of the next two numbers is:
    16:11:53 - 16:10:50 = 00:01:03
    Column C
    00:01:03

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Use formula: =TIME(LEFT(A1,2),MID(A1,3,2),RIGHT(A1,2)) to convert to time... where A1 is the cell with a downloaded time string

    Format cell to hh:mm:ss....

    then subtract one from the other and format that cell to hh:mm:ss
    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
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    In C2

    =TEXT(A2,"00\:00\:00")-TEXT(B2,"00\:00\:00")

    format as time

+ 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