+ Reply to Thread
Results 1 to 11 of 11

Converting Hours into Days

  1. #1
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Converting Hours into Days

    Hello, just need to Convert Hours into Days, for example on cell Q13 I have total sick hours used for the year in Hours now shows 13.5 cell formatted as General, I like to have it display as " 1 Day & 5hr. 50min "



    Thank you

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Converting Hours into Days

    Your expected answer cannot be correct. 0.5 hours is 30 minutes, and not 50. Or do you want 1 Day & 5.5 hourss
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Converting Hours into Days

    Maybe this??

    =IF(INT(A1/8)=1,INT(A1/8)&" Day & ",INT(A1/8)&" Days & ")&IF(MOD(A1,8)=1,INT(MOD(A1,8)/1)&" Hour &"&MOD(MOD(A1,8),1)*60& " Minutes",INT(MOD(A1,8)/1)&" Hour & "&MOD(MOD(A1,8),1)*60&" Minutes")
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: Converting Hours into Days

    place this code into a module , then in the cell provide the time in seconds
    usage:
    =ElapsedTimeAsText(e23)

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Re: Converting Hours into Days

    Im sorry your correct its 30min

  6. #6
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Re: Converting Hours into Days

    Thank you its exactly what I needed.

  7. #7
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Re: Converting Hours into Days

    Thanks you

  8. #8
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Re: Converting Hours into Days

    is there a way I can fix this

    "1 Day & 4 Hour & 30.0000000000002. Minutes"

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Converting Hours into Days

    Try this formula

    =INT(A1/8)&" Day(s) "&TEXT(MOD(A1,8)/24,"h"" Hours ""m"" Minutes""")
    Audere est facere

  10. #10
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Re: Converting Hours into Days

    Cool thank you

  11. #11
    Registered User
    Join Date
    11-08-2008
    Location
    Montreal
    Posts
    57

    Re: Converting Hours into Days

    Please bare with me, I have one more question on how to get 1.30 instead of 1.50, what I have now is calculating sick hours used out of 40hrs. total but instead of h.15 it shows h.75. instead of h.30 it shows h.50

+ 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. Replies: 10
    Last Post: 08-07-2017, 01:39 PM
  2. Converting Total Hours to Business Hours/Days
    By Fadooshy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-27-2015, 12:26 PM
  3. Converting days hours minutes to hours
    By namip in forum Excel General
    Replies: 7
    Last Post: 07-10-2011, 02:00 PM
  4. Converting hours to 8 hour days, 31 day limit? Formula blows up at 256 hours..
    By krfarmer in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-25-2010, 05:21 AM
  5. Converting hours into days, hours & minutes
    By John754 in forum Excel General
    Replies: 3
    Last Post: 10-07-2009, 06:28 PM
  6. [SOLVED] Problem converting Hours to Days, Hours, Minutes
    By Zyzzx in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-24-2005, 12:05 PM
  7. [SOLVED] converting hours to days,hours,minutes
    By L_n_da in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-29-2005, 02:05 PM

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