+ Reply to Thread
Results 1 to 8 of 8

Converting minutes+seconds into decimal

  1. #1
    Registered User
    Join Date
    03-14-2019
    Location
    Hereford
    MS-Off Ver
    Home and Business 2016
    Posts
    30

    Converting minutes+seconds into decimal

    We have a company spreadsheet that is used for updating cycle times on parts and we enter the new cycle times in minutes + seconds so that we can update it in the database. They had set this up before me starting however it is using a formulae of "=HOUR(C125) + MINUTE(C125) / 60 + SECOND(C125) / 3600" which was working until it came to trying to put something in higher than 24 as it would reset back to 0 and then continue so if it was 26 it would come back as "2.00" assuming its because it has the hours but how would i get it to turn minutes + seconds into a decimal?

    Attatched is the document and at the bottomis where i've been trying to see what the issue was.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Converting minutes+seconds into decimal

    does this help
    =INT(C196)*24+HOUR(C196) + MINUTE(C196) / 60 + SECOND(C196) / 3600
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Converting minutes+seconds into decimal

    Perhaps try =IF(C194>TIME(24,0,0),TEXT(C194,"[h]:mm:ss")*24,C194) and format as number

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Converting minutes+seconds into decimal

    You can use this formula instead in D27:

    =C27*24

    then copy down by double-clicking the fill handle (the small black square in the bottom right hand corner of the cursor), with D27 selected.

    This will take account of any hours above 24 - check out D100. However, C86 will need to be changed.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    03-14-2019
    Location
    Hereford
    MS-Off Ver
    Home and Business 2016
    Posts
    30

    Re: Converting minutes+seconds into decimal

    Quote Originally Posted by etaf View Post
    does this help
    =INT(C196)*24+HOUR(C196) + MINUTE(C196) / 60 + SECOND(C196) / 3600
    This seems to be working but is there a way to get it in C196 to appear as "29:59"/"29.59" as when using this it comes back as " 29:59:00"

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Converting minutes+seconds into decimal

    i think i missed the obvious solution as posted by Pete_UK

  7. #7
    Registered User
    Join Date
    03-14-2019
    Location
    Hereford
    MS-Off Ver
    Home and Business 2016
    Posts
    30

    Re: Converting minutes+seconds into decimal

    Quote Originally Posted by Pete_UK View Post
    You can use this formula instead in D27:

    =C27*24

    then copy down by double-clicking the fill handle (the small black square in the bottom right hand corner of the cursor), with D27 selected.

    This will take account of any hours above 24 - check out D100. However, C86 will need to be changed.

    Hope this helps.

    Pete
    So this is working for the decimal side but i have another question on how i get the "CYCLE TIME" column to show correctly as in, if i enter anything above 24 in here then it will go back to 0 and count up, so if i entered 25:25 (25 minutes 25 seconds) the decimal value is correct but in the cycle time column it shows as "01:25" when i'm wanting it to show as "25:25" any help?

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Converting minutes+seconds into decimal

    You should use a Custom Format for that column of:

    [hh]:mm

    The square brackets ensure that the time displays do not wrap at 24 hours.

    Hope this helps.

    Pete

+ 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 decimal minutes and seconds into total seconds
    By shauneyd in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2018, 08:50 AM
  2. Converting a sum from decimal minutes to minutes & seconds then multiplying by 10
    By sparkyliveson in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-22-2014, 11:53 AM
  3. Converting decimal to Month:Day:Hours:Minutes:Seconds
    By KellyK in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-20-2013, 03:34 AM
  4. RE: Converting decimal minutes to hours, minutes and seconds
    By mills49 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-14-2013, 09:14 AM
  5. Replies: 4
    Last Post: 01-18-2010, 04:29 AM
  6. Converting Lat/Long (Degrees Minutes Seconds) to Decimal Degrees
    By Jeremy Rayne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2008, 06:02 PM
  7. [SOLVED] Converting hours:minutes:seconds to just minutes
    By Dan Vagle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-17-2006, 06:25 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