+ Reply to Thread
Results 1 to 10 of 10

Help with seconds to minute calculation

  1. #1
    Registered User
    Join Date
    02-19-2023
    Location
    Virginia, US
    MS-Off Ver
    office 365
    Posts
    3

    Exclamation Help with seconds to minute calculation

    For some reason excel seems to be calculating this in error

    314.50 seconds is equal to 5.24 minutes. and I'm using the following formula in cell O2 =O2/(60*60*24)

    But the total in the output cell is 00:05:15

    the 314.50 is set to number and the 00:05.15 is set to a custom hh:mm:ss

    why is it not calculating correctly, am I missing something here ?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Help with seconds to minute calculation

    Checking this on an iPad so I can't use Custom Formats. However, using TEXT shows:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    = 00:05:14.5

    So, formatted as "hh:mm:ss" is correctly showing 00:05:15

    Note: 5 minutes is 300 seconds so you have 14.5 seconds left over.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Help with seconds to minute calculation

    why do you think it is wrong? 314.50/60 = 5.2416667 minutes, minus the 5 and you have .2416667 seconds which multiplied by 60 (seconds in a minute) = 14.5 seconds rounded up to 15 seconds.
    so 5 minutes and 15 seconds.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Help with seconds to minute calculation

    00:05:24 = 324s = 0,00375 * 60 * 60 * 24
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-19-2023
    Location
    Virginia, US
    MS-Off Ver
    office 365
    Posts
    3

    Re: Help with seconds to minute calculation

    Thank you TMS, but then why does it calculate to 5.24 in any google search?
    Attachment 860881

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Help with seconds to minute calculation

    That's a decimal value, not a Time value. As I explained, logically, 5 minutes is 300 seconds so, if you take that off 314.5 decimal value, you are left with 14.5 seconds. You therefore need to display 00:05:14.5 as a Time value.

  7. #7
    Registered User
    Join Date
    02-19-2023
    Location
    Virginia, US
    MS-Off Ver
    office 365
    Posts
    3

    Re: Help with seconds to minute calculation

    Thank you so Much Everyone for explaining it to me, really appreciate everyone's time

  8. #8
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Help with seconds to minute calculation

    Tks for the feedback.

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Help with seconds to minute calculation

    You're welcome. Thanks for the rep.

  10. #10
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Help with seconds to minute calculation

    yes, thank you for the rep!

+ 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. Refreshing Power Query data every 1 or 2 seconds instead of 1 minute
    By Hein Htut Oo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2022, 02:09 PM
  2. Help with DAys/Hour/Minute/Seconds
    By RavensFtw in forum Excel General
    Replies: 6
    Last Post: 09-19-2014, 11:09 PM
  3. Replies: 4
    Last Post: 08-18-2013, 08:28 PM
  4. convert number (integer) into hour:minute:seconds
    By maacmaac in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-01-2011, 08:56 AM
  5. Minute,Seconds,thenths and hundreths
    By daovert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-13-2008, 08:02 AM
  6. [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
  7. [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