+ Reply to Thread
Results 1 to 2 of 2

Problem converting durations

  1. #1
    Registered User
    Join Date
    07-20-2012
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2007
    Posts
    1

    Problem converting durations

    I am converting 8000 rows of data in excel. I am trying to figure out duration of different types phone calls. I converted the info from a .txt file. The only problem is my data is only m:ss, h:mm:ss, or mm:ss. for example it is displayed exactly like this in text 5:34 (m:ss), 1:03:33(h:mm:ss), and 21:34(mm:ss). I tried converting to h:mm:ss and it converts anything more than ten minutes to 10 hours and the hours are changed to minutes. For example using the above numbers 21:34:00 and 1:03. The only way I can get this stuff to look right is to not even format the durations. But I don't know how I'm going to add them without formatting it. There are several different callers and I have to figure out the duration of each. Is there a way I can add the data together if it looks like this 5:34, 21:34, and 1:03:33.

    Thank you kindly,

    Nelson
    Attached Files Attached Files
    Last edited by Nelsonk32; 07-20-2012 at 01:12 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Problem converting durations

    Maybe.... put this in D3, then copy downward:

    =IF(LEN(C3)=5, B2+(C3/60), B2+C3)

    ...formatted as [h]:mm:ss
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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