+ Reply to Thread
Results 1 to 5 of 5

Convert Days:Hours:Minutes:seconds to minutes.

  1. #1
    Registered User
    Join Date
    05-06-2011
    Location
    Prudhoe, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Convert Days:Hours:Minutes:seconds to minutes.

    I have a spread sheet with a colum showing average time to complete a task. This is currently shown as Days:Hours:Minutes:Seconds (4:19:33:19). I meed it to be shown purely as minutes, or at least as hours and minutes.

    Is there an easy way to do this?
    Last edited by Kevingardner1; 05-25-2011 at 08:24 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Convert Days:Hours:Minutes:seconds to minutes.

    Try:

    =LEFT(A1,FIND(":",A1)-1)*1440+MID(A1,FIND(":",A1)+1,20)*24

    formatted as General or Number with Decimals...
    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
    Registered User
    Join Date
    05-06-2011
    Location
    Prudhoe, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Convert Days:Hours:Minutes:seconds to minutes.

    You nailed it, bang on.

    Thanks so much.

  4. #4
    Registered User
    Join Date
    06-03-2014
    Posts
    1

    Re: Convert Days:Hours:Minutes:seconds to minutes.

    Hello,

    I apologise in advance - I'm pretty novice at this.

    I'm trying to do a similar thing to everyone else. I need to convert Days, Hours, Minutes and seconds into minutes. Currently our system supplies the data in the format 2d 9h 4m 0s. I've come to terms with the fact that I will have to manually go in and change it to dd:hh:mm:ss which is fine.

    I've tried using the calculation you gave before i.e. =LEFT(A1,FIND(":",A1)-1)*1440+MID(A1,FIND(":",A1)+1,20)*24 but it's coming out with some strange figures.

    For example; I used it to calculate 00d 5h 38m 5s and it came back with 5.63. Is this rounded up to hours or just the number representative of the time?

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: Convert Days:Hours:Minutes:seconds to minutes.

    Sommer, if the answers in this thread don't apply to your problem, then please start a new thread with your question.

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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