+ Reply to Thread
Results 1 to 3 of 3

Two part number problem. Been at it for hours. Any help would be really appreciated.

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Two part number problem. Been at it for hours. Any help would be really appreciated.

    Hello. This is my first time on this forum so I hope I'm following the proper protocol here. If anyone can help me with this I would really appreciate it. I have a column of about one thousand times. These times were duration periods recorded and entered in a mm:ss, thats minutes:seconds, format. I need to find a way to convert this format into hh:mm:ss. So far I haven't been able to do this. I'm running into a bunch of snags.

    I thought I might be able to create three new columns - an hh, mm, and ss column and then combine the three columns in a fourth folumn using the =time(h,m,s) function. However in order to do this I need to first split up the mm:ss durations into a mm and ss column. I tried using =left and =right functions but that isn't working and I have no idea why.

    I have some duration periods that are made up just seconds eg 0:45 (being 45 seconds) and some that are made up of single minute plus durations by which I mean durations less than ten minutes long, eg 1:45 (minute and 45 seconds) and some made up of double minute durations, by which I mean durations more than ten digits long eg 11:45.

    I figure that I will have to convert all the times to double digit minute formats (eg turning 07 min 15 sec from 7:15 to 07:15), but I don't know for certain.

    1) How can I alter duration column to make it uniform and get it so that all durations have two digits before colon?

    2) Second how can I turn mm:ss into hh:mm:ss short of typing it over one thousand times?

    Once again, any help would be greatly appreciated.
    Last edited by shenstevepre; 01-30-2013 at 08:54 PM. Reason: Rewording

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,662

    Re: Two part number problem. Been at it for hours. Any help would be really appreciated.

    To Attach a Workbook:
    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit
    Ben Van Johnson

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Two part number problem. Been at it for hours. Any help would be really appreciated.

    if the data in the cells is text, that looks like time/value, try using =timevalue() to convert it?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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