+ Reply to Thread
Results 1 to 6 of 6

Need a formula to convert massive quantities of cells formatted in hh:mm:ss to seconds

  1. #1
    Registered User
    Join Date
    04-01-2014
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Need a formula to convert massive quantities of cells formatted in hh:mm:ss to seconds

    Say I have a worksheet that has a column in which every cell is formated in hh:mm:ss format. The column is probably 100 cells long...so from A2 to A101 (A1 is the title of the column). Now, we need to take the data in cells A2:A101 and graph it, but the data needs to be formatted in only seconds. So, in column B, we want to convert the data from column A into seconds format.

    For example,

    cell A2: 00:01:46
    cell B2: 106

    Of course, we can't convert each cell by hand, because this needs to be done on a lot of data...worksheets upon worksheets. So, can anyone suggest a very efficient means to accomplish this?
    Last edited by H3br3wHamm3r81; 04-01-2014 at 06:02 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need a formula to convert massive quantities of cells formatted in hh:mm:ss to seconds

    Hi,

    Assuming A1 is a proper time number (.0012268518.....) and not a text string then in B1

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    formatted as a number.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-01-2014
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need a formula to convert massive quantities of cells formatted in hh:mm:ss to seconds

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Assuming A1 is a proper time number (.0012268518.....) and not a text string then in B1

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    formatted as a number.
    That's not a problem if we only need to convert one cell...it'd be a breeze.

    But,

    Of course, we can't convert each cell by hand, because this needs to be done on a lot of data...worksheets upon worksheets. So, can anyone suggest a very efficient means to accomplish this?
    I need to convert at least 100 cells in column A (A2:A101) from hh:mm:ss format to seconds format in column B (B2:B101). And, this needs to be done on numerous worksheets.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need a formula to convert massive quantities of cells formatted in hh:mm:ss to seconds

    Hi,



    I didn't mean you just to enter it in B1.

    After entering it, copy it and paste it all down the column as you would do for any other multi copy tasks

    And the if you want to automate it get a macro to perform the same task. i.e in a procesure which loops through alll sheets enter the formula in B1 of each sheet and then get the macro to copy and paste it to the last used row.

  5. #5
    Registered User
    Join Date
    04-01-2014
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need a formula to convert massive quantities of cells formatted in hh:mm:ss to seconds

    I bet you laughed your butt off there.

    I don't use Excel everyday, but your advice to copy and paste that one cell down the column was what I needed to know. I knew there was a way to do that! I knew the conversion formula; I just forgot how to do the "multi copy."

    Thanks Richard.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need a formula to convert massive quantities of cells formatted in hh:mm:ss to seconds

    Quote Originally Posted by H3br3wHamm3r81 View Post
    I bet you laughed your butt off there.
    No I wasn't laughing, but I must admit you had me wondering a bit, especially given the day you posted

+ 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 from seconds to form hours: minutes: seconds?
    By nguyen_han in forum Excel General
    Replies: 2
    Last Post: 10-13-2011, 06:56 AM
  2. Is there a formula that will convert h:mm:ss into seconds?
    By tsp in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-13-2005, 02:45 PM
  3. [SOLVED] Recalculation taking a massive 11 seconds
    By David.Allen297 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2005, 08:40 PM
  4. Recalculation taking a massive 11 seconds
    By David.Allen297 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2005, 09:30 AM
  5. Recalculation taking a massive 11 seconds
    By David.Allen297 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-11-2005, 11:35 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