+ Reply to Thread
Results 1 to 9 of 9

converting minutes to days, hours and minutes.

  1. #1
    Registered User
    Join Date
    09-17-2008
    Location
    Canada
    Posts
    2

    converting minutes to days, hours and minutes.

    Hi all,

    I have various times in a spreadsheet such as "100842" minutes which I need to convert to days hours and minutes. I am fairly open as far as presentation, I could use ddd:hh:mm or something similar.

    I appreciate any help offered!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Displaying a non-time value as days:hrs:min

    More examples of source data and desired results would be helpful.

    Meanwhile,
    With
    A1: (a number intended to convey days, hours, and minutes.....eg 100842)

    This formula presents the components of that number, separated by colons (
    Please Login or Register  to view this content.
    In the above example, 100842 displays as 10:08:42

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

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

    =INT(A1/1440)&" days "&INT(MOD(A1/1440,1)*24)&" hours "&INT(MOD(MOD(A1/1440,1)*24,1)*60)&" minutes"

    where A1 contains original number of minutes.
    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.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I guess I took 100842 to be a total amount of actual minutes....

  5. #5
    Registered User
    Join Date
    09-17-2008
    Location
    Canada
    Posts
    2
    NBVC,

    Works beautifully, thanks a bunch!

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Displaying total minutes as days, hrs, mins

    NBVC
    ...and I (mistakenly?) thought it was a number to be broken into segments.
    I think you got right.

    If it is the total number of minutes...perhaps this approach:
    With
    A1: 100842

    Please Login or Register  to view this content.
    returns: 70:00:42

    or...
    Please Login or Register  to view this content.
    returns: 70 days 00 hrs 42 min

    I guess we'll see if we helped (one way or the other)

  7. #7
    Registered User
    Join Date
    10-20-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    6

    Re: converting minutes to days, hours and minutes.

    Hi

    Just continuting on from the previous query.

    Once you got the answer - displaying number of days, hours and minutes
    How can you change that to display in tota hh:mm format?

    I have tried to do the same for 3900 minutes-
    I get 2 days 17 hours and 0 minutes.

    But now I want to display this 2days and 17 hours as 65:00

    Is there any way this can be done?

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: converting minutes to days, hours and minutes.

    =text(a1/1440,"[h]:mm:ss")
    Please Login or Register  to view this content.
    try the above
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  9. #9
    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,926

    Re: converting minutes to days, hours and minutes.

    Tulsip welcome to the forum

    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.
    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)

Similar Threads

  1. Counting days and hours
    By roddie in forum Excel General
    Replies: 15
    Last Post: 09-11-2008, 05:15 AM
  2. Converting individual cells within a range from minutes to decimal hours
    By epyzdrh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-06-2008, 09:53 AM
  3. Replies: 2
    Last Post: 01-08-2008, 10:51 PM
  4. Converting minutes to hours and minutes
    By dirwin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-01-2008, 02:00 PM
  5. Duration of time for two dates in days, hours and minutes
    By sgrimm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2006, 09:39 AM

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