+ Reply to Thread
Results 1 to 7 of 7

Help with DAys/Hour/Minute/Seconds

  1. #1
    Registered User
    Join Date
    08-28-2014
    Location
    Baltimore
    MS-Off Ver
    2010
    Posts
    32

    Help with DAys/Hour/Minute/Seconds

    hello!
    I am having a hard time getting lets say 90000 Seconds to Day Hour Minute Seconds
    Every time i put it in gives me a date (without obviously seconds), or it will only show 00:00:00:xx(number)

    Any ideas?

  2. #2
    Registered User
    Join Date
    08-28-2014
    Location
    Baltimore
    MS-Off Ver
    2010
    Posts
    32

    Re: Help with DAys/Hour/Minute/Seconds

    Or it will put a day of the week. I just want How many Days, how many hours, how many minutes, how many seconds.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Help with DAys/Hour/Minute/Seconds

    http://excelsemipro.com/2010/08/date...tion-in-excel/

    Please Login or Register  to view this content.
    format cell as time

    Result = 01:00:00

    because 86400 is subtracted from your 90000 and discarded, that is one day and therefore cannot be displayed.
    the remaining 3600 is displayed as 01:00:00 ie One hour.

    if your number is 90000 then int(90000/86400) will give you days.
    mod(90000, 86400) will give you your time element.
    Attached Files Attached Files
    Last edited by mehmetcik; 09-19-2014 at 08:08 PM.

  4. #4
    Registered User
    Join Date
    08-28-2014
    Location
    Baltimore
    MS-Off Ver
    2010
    Posts
    32

    Re: Help with DAys/Hour/Minute/Seconds

    I figured it out but thanks. it can be displayed.. all you have to do is put DD:HH:MM:SS in custom ... and then in the equation just put 60*60*24 and it will come out.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with DAys/Hour/Minute/Seconds

    Divide by 86400 (number of seconds in a day) and format as d h:mm:ss.

    This will only work up to 31days 23hrs 59mins 59secs.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    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,938

    Re: Help with DAys/Hour/Minute/Seconds

    See if this will do for you (it does not include the terms Hours, Minutes, Seconds in teh answer but does show the hrs, mins and secs...
    =INT(A1/60/60/24)&" Days & "&TEXT(MOD(A1/60/60/24,1),"hh:mm:ss")&" Hours"
    =1 Days & 01:01:06 Hours
    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

  7. #7
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Cool Re: Help with DAys/Hour/Minute/Seconds

    Custom Formatting used.. (Inspired from Tony..)
    You can use FORMAT PAINTER to format other cells as well..
    check the attached file..
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

+ 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. convert number (integer) into hour:minute:seconds
    By maacmaac in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-01-2011, 08:56 AM
  2. Minute,Seconds,thenths and hundreths
    By daovert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-13-2008, 08:02 AM
  3. [SOLVED] Code to show current hour minute and seconds in a cell
    By Dr.H.Subramanian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2005, 07:05 AM
  4. [SOLVED] convert time from 60 minute hour to 100 minute hour
    By Jboerding in forum Excel General
    Replies: 2
    Last Post: 07-06-2005, 06:30 PM
  5. [SOLVED] roundup seconds to minute
    By obi-akpere in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2005, 09:06 AM

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