+ Reply to Thread
Results 1 to 6 of 6

Turn data into seconds

  1. #1
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Turn data into seconds

    Hello to all,
    this date in days/hours/minutes/seconds

    67:4:22:54

    67 dd / 4 hh / 22 mm / 54 ss

    correspond to how many seconds?
    correspond to how many minutes?
    correspond to how many hours?
    max_max
    Last edited by max_max; 01-16-2018 at 04:08 PM.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Turn data into seconds

    Assuming the cell is formatted as Text, try these:

    Seconds: =(LEFT(A1,FIND(":",A1)-1)+MID(A1,FIND(":",A1)+1,LEN(A1)))*86400
    Minutes: =(LEFT(A1,FIND(":",A1)-1)+MID(A1,FIND(":",A1)+1,LEN(A1)))*1440
    Hours: =(LEFT(A1,FIND(":",A1)-1)+MID(A1,FIND(":",A1)+1,LEN(A1)))*24
    Days: =LEFT(A1,FIND(":",A1)-1)+MID(A1,FIND(":",A1)+1,LEN(A1))

  3. #3
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: Turn data into seconds

    Hi 63falcondude it's ok.!
    I do not understand a thing.
    Now for example for the minuts in A1 is 458015
    If I do in A3 =A1&"min" the risults is 458015,125444.
    I do not know how to remove the numbers after the comma in A3
    I tried format cells> number> decimal places = 0 but it does not change.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Turn data into seconds

    Try:

    =ROUND(A1;0)&"min"
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: Turn data into seconds

    Hi AliGW it's ok.
    thank you.
    max_max

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Turn data into seconds

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Manipulate Outlook Shortcuts (turn them on and turn them off) from excel vbascript
    By beckstei in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-23-2016, 10:46 AM
  2. [SOLVED] Seconds to hours:minutes:seconds format
    By dalipsinghbisht in forum Excel General
    Replies: 1
    Last Post: 05-12-2013, 12:10 AM
  3. Auto calc on, then turn off, then runtime error how to turn back on
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-22-2011, 10:37 AM
  4. convert from seconds to form hours: minutes: seconds?
    By nguyen_han in forum Excel General
    Replies: 2
    Last Post: 10-13-2011, 06:56 AM
  5. Replies: 1
    Last Post: 07-30-2010, 03:35 PM
  6. Replies: 4
    Last Post: 01-18-2010, 04:29 AM
  7. Replies: 2
    Last Post: 02-17-2006, 08:15 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