+ Reply to Thread
Results 1 to 6 of 6

Convert [H] to days, hours, minutes

  1. #1
    Registered User
    Join Date
    12-09-2010
    Location
    Germantown, MD
    MS-Off Ver
    Excel 2007
    Posts
    9

    Convert [H] to days, hours, minutes

    Hey gang! I know about the 31 day limit and thus can't use a format to accomplish this. Is there a way I can easily convert the hours and minutes listed in column B into days, hours & minutes without having to manually do the math?

    My end result would be to have a column chart showing each groups total. My director does not like having to figure out how many days the hours equal.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-28-2010
    Location
    Chambersburg, PA, USA
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Convert [H] to days, hours, minutes

    You should be able to format that column using a special format that looks like this.

    dd:hh:mm enter this in the custom format under the first tab in the type line

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Convert [H] to days, hours, minutes

    This should work (formatted as General)
    =INT(B4) &" days " &INT(MOD(B4*24,24))& " hrs "&INT(MOD(B4*24*60,60))&" min."
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    07-28-2010
    Location
    Chambersburg, PA, USA
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Convert [H] to days, hours, minutes

    Quote Originally Posted by Oly Steel Man View Post
    You should be able to format that column using a special format that looks like this.

    dd:hh:mm enter this in the custom format under the first tab in the type line

    This format would be cleaner

    dd "days":hh "hrs":mm "min."

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Convert [H] to days, hours, minutes

    @Oly Steel Man - please note the first line in very first post - ie a Custom Format can not display cumulative days beyond 31.

    FWIW another fudge is to down grade each unit such that days become hours, hours minutes and so on and so forth then use [h] "days" etc...

    edit: example of above being:

    Please Login or Register  to view this content.
    I wouldn't recommend this approach however !
    Last edited by DonkeyOte; 12-16-2010 at 03:21 PM.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Convert [H] to days, hours, minutes

    Below is a slight variant on Chemist's original suggestion:

    Please Login or Register  to view this content.

+ 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