+ Reply to Thread
Results 1 to 7 of 7

formula hour-minute

  1. #1
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,550

    formula hour-minute

    Hello everyone this formula:
    transform hours/cents in hours/minutes



    it does not work properly.
    If the hours are greater than 24, it is not correct
    I hope I explained.
    I am attaching the sample files.
    max_max

  2. #2
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,550

    Re: formula hour-minute

    The formula

    =ORA(1/24*C8)+MINUTO(1/24*C8)/100+SECONDO(1/24*C8)/10000

    =HOUR(1/24*C8)+MINUTE(1/24*C8)/100+SECOND(1/24*C8)/10000

    max_max.xls

  3. #3
    Forum Guru Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,067

    Re: formula hour-minute

    Try

    =TEXT(A2/24,"[hh]:mm:ss")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    12,488

    Re: formula hour-minute

    I would suggest a review of how Excel stores dates and times: http://www.cpearson.com/Excel/datetime.htm#SerialDates

    Since time is simply "fraction of a day" convert the decimal hours to fraction of a day: =A2/24
    Format as elapsed time (not "time of day"). Format code like [h]:m:s https://support.office.com/en-us/art...2-09fab54be7f4
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,550

    Re: formula hour-minute

    Hello ace_xl
    your formula works, but it is not the correct:
    =SUM(C2:C7)
    perhaps not accept the format TEXT.
    max_max

    max_max_2.xls

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    12,488

    Re: formula hour-minute

    =SUM(C2:C7) perhaps not accept the format TEXT.
    Correct, the SUM() function ignores text arguments, including "numbers stored as text". Ace_XL's formula returns a text string, so the sum function ignores results of the TEXT() function.

    Did you try my solution? Mine does the same thing, except it does not convert the values to a text string. It relies on number formatting to provide the sexagesimal notation we are used to.

  7. #7
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,550

    Re: formula hour-minute

    Hello MrShorty.
    I tried it and it works as you say.

    =A3/24
    size > Custom > [hh]:mm:ss

    Thank you.
    A greeting.
    max_max

+ 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. [SOLVED] Formula for Hour Minute and Second
    By Dr.H.Subramanian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  2. [SOLVED] Formula for Hour Minute and Second
    By Mangesh Yadav in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 09-06-2005, 02:05 PM
  3. [SOLVED] Formula for Hour Minute and Second
    By Dr.H.Subramanian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  4. [SOLVED] Formula for Hour Minute and Second
    By Mangesh Yadav in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-06-2005, 06:05 AM
  5. [SOLVED] Formula for Hour Minute and Second
    By Dr.H.Subramanian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. [SOLVED] Formula for Hour Minute and Second
    By Dr.H.Subramanian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. Formula for Hour Minute and Second
    By Dr.H.Subramanian in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-10-2005, 08:05 AM
  8. [SOLVED] convert time from 60 minute hour to 100 minute hour
    By Jboerding in forum Excel General
    Replies: 2
    Last Post: 07-06-2005, 06:30 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