+ Reply to Thread
Results 1 to 6 of 6

How do I round off times in Excel?

  1. #1
    Andrew
    Guest

    How do I round off times in Excel?

    I am calculating times by dividing a distance by a speed. The results are in
    cells formatted hh:mm but always seem to be rounded down so that the sum of
    the column may be several minutes out, compared to the times displayed.

    If I reformat the cells hh:mm:ss then I can see for example what was 01:32
    displayed as 01:32:57. I want this to appear as 01:33.

    Any ideas?

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try this

    =ROUND(A18*1440,0)/1440

    Rounds down if 29 sec and rounds up 31 sec

    VBA Noob

  3. #3
    Biff
    Guest

    Re: How do I round off times in Excel?

    Hi!

    So you want to round to the nearest minute?

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

    Or:

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

    Biff

    "Andrew" <[email protected]> wrote in message
    news:[email protected]...
    >I am calculating times by dividing a distance by a speed. The results are
    >in
    > cells formatted hh:mm but always seem to be rounded down so that the sum
    > of
    > the column may be several minutes out, compared to the times displayed.
    >
    > If I reformat the cells hh:mm:ss then I can see for example what was 01:32
    > displayed as 01:32:57. I want this to appear as 01:33.
    >
    > Any ideas?




  4. #4
    Andrew
    Guest

    Re: How do I round off times in Excel?

    Thanks very much

    "Biff" wrote:

    > Hi!
    >
    > So you want to round to the nearest minute?
    >
    > =ROUND(A1/(1/1440),0)*1/1440
    >
    > Or:
    >
    > =ROUND(A1/TIME(0,1,0),0)*TIME(0,1,0)
    >
    > Biff
    >
    > "Andrew" <[email protected]> wrote in message
    > news:[email protected]...
    > >I am calculating times by dividing a distance by a speed. The results are
    > >in
    > > cells formatted hh:mm but always seem to be rounded down so that the sum
    > > of
    > > the column may be several minutes out, compared to the times displayed.
    > >
    > > If I reformat the cells hh:mm:ss then I can see for example what was 01:32
    > > displayed as 01:32:57. I want this to appear as 01:33.
    > >
    > > Any ideas?

    >
    >
    >


  5. #5
    Andrew
    Guest

    Re: How do I round off times in Excel?

    Thanks very much

    "VBA Noob" wrote:

    >
    > Try this
    >
    > =ROUND(A18*1440,0)/1440
    >
    > Rounds down if 29 sec and rounds up 31 sec
    >
    > VBA Noob
    >
    >
    > --
    > VBA Noob
    > ------------------------------------------------------------------------
    > VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
    > View this thread: http://www.excelforum.com/showthread...hreadid=562623
    >
    >


  6. #6
    Biff
    Guest

    Re: How do I round off times in Excel?

    You're welcome!

    Biff

    "Andrew" <[email protected]> wrote in message
    news:[email protected]...
    > Thanks very much
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> So you want to round to the nearest minute?
    >>
    >> =ROUND(A1/(1/1440),0)*1/1440
    >>
    >> Or:
    >>
    >> =ROUND(A1/TIME(0,1,0),0)*TIME(0,1,0)
    >>
    >> Biff
    >>
    >> "Andrew" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I am calculating times by dividing a distance by a speed. The results
    >> >are
    >> >in
    >> > cells formatted hh:mm but always seem to be rounded down so that the
    >> > sum
    >> > of
    >> > the column may be several minutes out, compared to the times displayed.
    >> >
    >> > If I reformat the cells hh:mm:ss then I can see for example what was
    >> > 01:32
    >> > displayed as 01:32:57. I want this to appear as 01:33.
    >> >
    >> > Any ideas?

    >>
    >>
    >>




+ 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