+ Reply to Thread
Results 1 to 4 of 4

Round hh:mm:ss to whole hh:mm

Hybrid View

  1. #1
    PJH
    Guest

    Round hh:mm:ss to whole hh:mm

    I am using the following:

    =TEXT((J30/$B$31)/24, "h:mm")

    to convert hours and hundreths to hours and minutes. Excel is dropping the
    seconds and not rounding up. (e.g., 9:00:36 should round to 9:01)

    Any ideas?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699
    Try

    =ROUND((J30/$B$31)*6,1)/144

    format as [h]:mm

  3. #3
    Peo Sjoblom
    Guest

    Re: Round hh:mm:ss to whole hh:mm

    Then you need to use round, btw is there any particular reason you are using
    TEXT?


    =ROUND(A1/TIME(,1,),0)*TIME(,1,)

    will round the time value in A1 to nearest minute
    could look like

    =ROUND((J30/$B$31/24)/TIME(,1,),0)*TIME(,1,)

    of course that can be wrapped in TEXT

    --
    Regards,

    Peo Sjoblom

    Northwest Excel Solutions

    Portland, Oregon




    "PJH" <PJH@discussions.microsoft.com> wrote in message
    news:2A802917-69F6-4C67-99CF-30845C224C76@microsoft.com...
    >I am using the following:
    >
    > =TEXT((J30/$B$31)/24, "h:mm")
    >
    > to convert hours and hundreths to hours and minutes. Excel is dropping
    > the
    > seconds and not rounding up. (e.g., 9:00:36 should round to 9:01)
    >
    > Any ideas?



  4. #4
    Ron Rosenfeld
    Guest

    Re: Round hh:mm:ss to whole hh:mm

    On Thu, 16 Feb 2006 16:52:27 -0800, PJH <PJH@discussions.microsoft.com> wrote:

    >I am using the following:
    >
    >=TEXT((J30/$B$31)/24, "h:mm")
    >
    >to convert hours and hundreths to hours and minutes. Excel is dropping the
    >seconds and not rounding up. (e.g., 9:00:36 should round to 9:01)
    >
    >Any ideas?



    You need to round your result to the nearest minute:


    =TEXT(ROUND((J30/$B$31)/24/TIME(0,1,0),0)*TIME(0,1,0), "h:mm")


    --ron

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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