+ Reply to Thread
Results 1 to 6 of 6

time as mm:ss to total seconds

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    LA
    MS-Off Ver
    Excel For Mac 2011
    Posts
    99

    time as mm:ss to total seconds

    Hi , having a hard time formatting cells to just show total seconds rather than minutes:seconds format... So I tried to separate the data into 2 columns at the ":" and then convert "1" to 60, "2" to 120 etc.. but that isn't working either. Any ideas ? Example below. thanks

    Data (time)
    Cell A2= 1:15
    Cell A3= 2:05

    Desired result ( total seconds)
    Cell B2= 75
    Cell B3= 125

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: time as mm:ss to total seconds

    Try this

    =A1*1440

    Row\Col
    A
    B
    1
    1:15
    75
    2
    2:05
    125
    Last edited by AlKey; 03-25-2015 at 07:52 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: time as mm:ss to total seconds

    Quote Originally Posted by syncguy View Post
    Data (time)
    Cell A2= 1:15
    Cell A3= 2:05

    Desired result ( total seconds)
    Cell B2= 75
    Cell B3= 125
    First, if you literally enter 1:15, Excel will interpret that as 1 hr 15 min, regardless of how you format the cell. Enter either 0:1:15 or 1:15.0, and format as Custom [m]:ss.

    Then the formula in B2 can be =A2*86400 or =ROUND(A2*86400,0). Use the latter if you want integer seconds with no fractional part.

    Even if the time is entered accurate to the second, like 0:1:15, A2*86400 might have (infinitesimally small) fractional seconds due to the way that binary arithmetic works.

    If your data comes from another source, and it must be in the form 1:15 to represent 1 min 15 sec, the formula in B2 can =A2*1440 or =ROUND(A2*1440,0).

    Technically, we are actually converting hr:min to minutes. But the computer does not really know that. "Units" of data is a human interpretation.
    Last edited by joeu2004; 03-25-2015 at 07:51 PM. Reason: cosmetic

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: time as mm:ss to total seconds

    Quote Originally Posted by syncguy View Post
    ....having a hard time formatting cells to just show total seconds rather than minutes:seconds format...
    To show total seconds you can simply custom format the cell as [s]

    .....but as joeu2004 says, you need to make sure you input correctly in the first place, so input as 0:01:15 and format the cell as [s] and you'll see 75
    Audere est facere

  5. #5
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: time as mm:ss to total seconds

    Quote Originally Posted by daddylonglegs View Post
    as joeu2004 says, you need to make sure you input correctly in the first place, so input as 0:01:15 and format the cell as [s] and you'll see 75
    You will see 75, but beware: the actual cell value is not 75.

    So syncguy, you need to be clear: do you want the values in column B to be the actual decimal number of seconds; or do you simply want them to display seconds?


    If the latter, you do not need column B at all. Simply format column A per daddylonglegs's suggestion.

    But my understanding was: you want the actual value 75. For example, so you can write =IF(B2>=75,TRUE).

  6. #6
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: time as mm:ss to total seconds

    Understand that time is controlled or broken down by a 24 hour period which is why you end up in decimal format. If you are starting with a whole number (13) and you want the hour 13 to display you would simply divide by 24 to get 1:00 PM or 13:00. Now if you are going in the inverse you will multiply the decimal (Which is formatted to appear as a time value format HH:MM or H:MM:SS for your viewing pleasure)

    Once you wrap your head around that - then just remember the following list. 24 for hours, that time 60 for Minutes (or just 1440 = 24*60) and then minutes times 60 for seconds (or just 86400 = 24*60*60)

    Multiply by = (Simplified)
    Hours 24= 24
    Minutes (24*60)= 1440
    Seconds (24*60*60)= 86400

    So...
    Time * Conversion = Result
    0:01:15 * 24 = 0.020833333 Hours
    0:01:15 * 1440 = 1.25 Minutes
    0:01:15 * 86400 = 75 Seconds
    -If you think you are done, Start over - ELeGault

+ 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. Macro to automatically convert time (h:m:s) into total seconds
    By marianlim in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-04-2012, 04:58 PM
  2. Filtering time from 1 seconds into 10 seconds
    By Deane in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-30-2010, 09:48 PM
  3. need help finding total seconds
    By olive in forum Excel General
    Replies: 3
    Last Post: 04-29-2010, 03:42 AM
  4. what is the formula to convert time (3:46) to total seconds?
    By LaurieC. in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-25-2006, 02:25 AM
  5. [SOLVED] Sum minutes and seconds to total hours
    By deck4 in forum Excel General
    Replies: 3
    Last Post: 08-29-2005, 10:05 AM

Tags for this Thread

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