+ Reply to Thread
Results 1 to 11 of 11

Convert h:mm:ss to a number of minutes

  1. #1
    Registered User
    Join Date
    07-29-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Convert h:mm:ss to a number of minutes

    Hello,

    I'm having some trouble converting a time in the format h:mm:ss to a pure number of minutes.

    Here is the scenario:
    Cell A2 reads "12:07:00AM"

    What I need it to read is just 7.00 or 7 without retaining the rest of the time format.

    Any ideas on how to convert this? I've tried a variety of formulas everything is still returning the h:mm:ss coding behind the scenes.

    Thanks!

    David

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Convert h:mm:ss to a number of minutes

    Do you want this in the same cell?

    What if you change the custom format to mm:ss
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    07-29-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Convert h:mm:ss to a number of minutes

    Adjacent cell would actually be optimal. The problem is it seems to retain the time format, which causes problems when I try and pivot the data to sum things up and do other analysis.The numbers on their own can be calculated, but the time format seems to really mess up the pivot tables, thus why I'd like to convert 12:07:00AM into a pure number.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Convert h:mm:ss to a number of minutes

    Try...

    =MINUTE(A2) >> returns 7

  5. #5
    Registered User
    Join Date
    07-29-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Convert h:mm:ss to a number of minutes

    Hmmm...that worked for the individual issue, but I can't get it to work for the 1000 other rows of other times.

    My current fix is pretty crude, but basically I took =A2*24*60/24 in an adjacent cell, converted this to a decimal, then in another cell multiplied by 24 to yield a pure number of 7.0000001 (close enough). Seemed to have done the trick for all the values. I highly doubt this way is optimal, but it did the trip (the multiplying and dividing by 24 seems redundant, but I couldn't get the right answer otherwise).

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Convert h:mm:ss to a number of minutes

    Without seeing your data it's hard to understand why the other rows did not work.

    Do you have some sanitized sample data you can provide?

  7. #7
    Registered User
    Join Date
    07-29-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Convert h:mm:ss to a number of minutes

    Sure, see sanitized data attached. I've included the 1000 or so rows I'm converting...
    Attached Files Attached Files

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Convert h:mm:ss to a number of minutes

    In your attachment I don't see where you tried...

    =MINUTE(B3)

    ...but when I place this formula in B3 and copy down, I seem to get what you desire.

    In B1046 which reads 2:50:00, =MINUTE(B1046) produces 50, and the row above 44...

    Should you be getting something different?

  9. #9
    Registered User
    Join Date
    07-29-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Convert h:mm:ss to a number of minutes

    I actually just gave it a try again with the formula you referenced, seems like it is working fine now as well. Very useful, seems like a simple way to convert! Thanks Jeffrey!

  10. #10
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Convert h:mm:ss to a number of minutes

    You're welcome…glad to know you have a workable solution now and thanks for the feedback...

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

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

    Re: Convert h:mm:ss to a number of minutes

    If 2:50 should convert to 170 then just multiply by 1440 and format as number, e.g.

    =B3*1440
    Audere est facere

+ 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. Excel 2007 : Convert number of minutes to hours and minutes
    By MikeFromIndy in forum Excel General
    Replies: 30
    Last Post: 06-05-2015, 08:10 AM
  2. trying to convert a number into minutes and add minutes to a starting time
    By crbazzer in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-28-2013, 09:26 AM
  3. [SOLVED] How do I convert a number of minutes into hours and minutes?
    By gyrkin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  4. [SOLVED] How do I convert a number of minutes into hours and minutes?
    By gyrkin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  5. [SOLVED] How do I convert a number of minutes into hours and minutes?
    By Chip Pearson in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 09:05 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