+ Reply to Thread
Results 1 to 8 of 8

Converting hours and minutes to digital

  1. #1
    Registered User
    Join Date
    07-10-2008
    Location
    West Palm Beach
    MS-Off Ver
    2007
    Posts
    41

    Converting hours and minutes to digital

    I've got spreadsheets that are new every three months. Two columns are based on hours and minutes that the vehicles run in a day. It comes out of a proprietary software that prints out for instance, 158h13m, in a general format. I need to convert these columns to digital for use in another spreadsheet. Right now I'm going through cell by cell, using the formula =158+13/60, changing to a number format. If there is a way to copy this formula I don't know it. But I need to do this with two entire columns on about 30 different sheets. I don't know VBA. Is there an easier way to do this than what I'm doing now? I appreciate your help or guidance on this.

    Example:
    Col A Formula Col B
    149h30 =149+30/60 149.50
    80h25 =80+25/60 80.42
    109h15 =109+15/60 109.25
    8h20 =8+20/60 8.33
    23h20 =23+20/60 23.33

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Converting hours and minutes to digital

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

    input into b2, then you can click the bottom right corner of the cell and it will fill all the way down to the end of the data in column A
    Hope I could help - if your post has been solved don't forget to mark it as such.

    Clicking the * below is a great way to say thanks!

    "Drowning in 10 feet of water isn?t any different than drowning in a million feet. And if you can swim, it doesn?t matter how deep the ocean is. At some level, once you realize you?re in water that?s too deep to stand, you have to have a very different approach," - Joi Ito

  3. #3
    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: Converting hours and minutes to digital

    Hi,

    One way

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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.

  4. #4
    Registered User
    Join Date
    07-10-2008
    Location
    West Palm Beach
    MS-Off Ver
    2007
    Posts
    41

    Re: Converting hours and minutes to digital

    Thank you so much! Checked it against my numbers done one by one and it was just the same. You have saved me hours of work. Much appreciated!

  5. #5
    Registered User
    Join Date
    07-10-2008
    Location
    West Palm Beach
    MS-Off Ver
    2007
    Posts
    41

    Re: Converting hours and minutes to digital

    Richard, thanks for answering, but this one didn't come up with the /60 answer. It kept it in just numerical terms. I needed it in time, but in digital. Simarui's solution worked great for what I've got. I appreciate your answering.

  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: Converting hours and minutes to digital

    Quote Originally Posted by scarames View Post
    Richard, thanks for answering, but this one didn't come up with the /60 answer. It kept it in just numerical terms. I needed it in time, but in digital. Simarui's solution worked great for what I've got. I appreciate your answering.
    Yes, good point. I'd missed that completely.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Converting hours and minutes to digital

    Another way:

    Row\Col
    A
    B
    C
    1
    149h30
    149.5
    B1: =24*SUBSTITUTE(A1, "h", ":")
    2
    80h25
    80.4
    3
    109h15
    109.3
    4
    8h20
    8.3
    5
    23h20
    23.3
    Entia non sunt multiplicanda sine necessitate

  8. #8
    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: Converting hours and minutes to digital

    ..slight modification to shg's suggestion when the string ends in "m"

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

+ 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. Replies: 13
    Last Post: 05-03-2013, 08:42 PM
  2. 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
  3. Converting hours and minutes in military time to minutes
    By Argile79 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-13-2010, 02:42 PM
  4. [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
  5. converting Days Hours & minutes into just minutes in excel
    By Six Sigma Blackbelt in forum Excel General
    Replies: 5
    Last Post: 04-28-2006, 04:45 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