+ Reply to Thread
Results 1 to 7 of 7

Convert seconds to 1 day 3 hours 25 minutes.

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    17

    Convert seconds to 1 day 3 hours 25 minutes.

    Hello,

    Some of the reports received from technicians are reading 1645 (minutes worked on a ticket), however for the reporting purpose I will like to display 1 day 3 hours 25 minutes in my excel report.

    Do I need to use a formula or a macro?

    Thank you for your feedback and help.

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Convert seconds to 1 day 3 hours 25 minutes.

    =a1/1440

    format cell as: d "days", h "hours" mm "minutes"

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Convert seconds to 1 day 3 hours 25 minutes.

    Hi, I like mama's answer better than mine but..

    With 1645 in cell A2
    Days = =INT(A2/(60*24))
    Hours = =INT(MOD(A2,24*60)/60)
    Minutes = =MOD(A2,60)

    I still like TM answer better than mine.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Convert seconds to 1 day 3 hours 25 minutes.

    hi bandera, would it ever exceed 31 days? the formatting of cells wont work if so. mine is the same as MarvinP:
    =INT(A1/1440)&" day/s "&INT(MOD(A1,1440)/60)&" hour/s "&MOD(A1,60)&" minute/s"

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Convert seconds to 1 day 3 hours 25 minutes.

    I would just use =A1/1440 and format as [h]:mm to see 27:25. That way the result can be used in a downstream calculation.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    04-18-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Convert seconds to 1 day 3 hours 25 minutes.

    Thank you everyone. Mama's solution did the trick for me.

  7. #7
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Convert seconds to 1 day 3 hours 25 minutes.

    You're Welcome!

+ 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