+ Reply to Thread
Results 1 to 6 of 6

Round up a time to the next 15 minutes

  1. #1
    Frederick Chow
    Guest

    Round up a time to the next 15 minutes

    Hi all,

    I have a column of numbers in [hh]:mm format. Now I want to round up each
    time to the next 15 minutes, e.g.

    15:43 -> 15:45
    15:46 -> 16:00

    The ROUNDUP function does not provide a direct solution for me. Any
    suggestion? Thanks a lot.

    Frederick Chow
    Hong Kong.



  2. #2
    JE McGimpsey
    Guest

    Re: Round up a time to the next 15 minutes

    One way:

    =CEILING(A1,1/96)



    XL stores times as fractional days, so 15 minutes = 1/96 day.

    In article <eWTewVCQGHA.1088@tk2msftngp13.phx.gbl>,
    "Frederick Chow" <PleaseRemoveThishkmusc@yahoo.com> wrote:

    > Hi all,
    >
    > I have a column of numbers in [hh]:mm format. Now I want to round up each
    > time to the next 15 minutes, e.g.
    >
    > 15:43 -> 15:45
    > 15:46 -> 16:00
    >
    > The ROUNDUP function does not provide a direct solution for me. Any
    > suggestion? Thanks a lot.
    >
    > Frederick Chow
    > Hong Kong.


  3. #3
    Ardus Petus
    Guest

    Re: Round up a time to the next 15 minutes

    =ROUNDUP(A2*96;0)/96

    --
    HTH
    --
    AP

    "Frederick Chow" <PleaseRemoveThishkmusc@yahoo.com> a écrit dans le message
    de news:eWTewVCQGHA.1088@tk2msftngp13.phx.gbl...
    > Hi all,
    >
    > I have a column of numbers in [hh]:mm format. Now I want to round up each
    > time to the next 15 minutes, e.g.
    >
    > 15:43 -> 15:45
    > 15:46 -> 16:00
    >
    > The ROUNDUP function does not provide a direct solution for me. Any
    > suggestion? Thanks a lot.
    >
    > Frederick Chow
    > Hong Kong.
    >
    >




  4. #4
    Frederick Chow
    Guest

    Thanks a lot!

    Oh! Thanks for reminding me the CEILING and FLOOR function can do the
    tricks. Thanks for your reminder.

    Fredeick Chow
    Hong Kong
    "JE McGimpsey" <jemcgimpsey@mvps.org> wrote in message
    news:jemcgimpsey-9706CC.00463705032006@msnews.microsoft.com...
    > One way:
    >
    > =CEILING(A1,1/96)
    >
    >
    >
    > XL stores times as fractional days, so 15 minutes = 1/96 day.
    >
    > In article <eWTewVCQGHA.1088@tk2msftngp13.phx.gbl>,
    > "Frederick Chow" <PleaseRemoveThishkmusc@yahoo.com> wrote:
    >
    >> Hi all,
    >>
    >> I have a column of numbers in [hh]:mm format. Now I want to round up each
    >> time to the next 15 minutes, e.g.
    >>
    >> 15:43 -> 15:45
    >> 15:46 -> 16:00
    >>
    >> The ROUNDUP function does not provide a direct solution for me. Any
    >> suggestion? Thanks a lot.
    >>
    >> Frederick Chow
    >> Hong Kong.




  5. #5
    Frederick Chow
    Guest

    Thanks a lot!

    Thanks very much for your alternative version! Though more obscure, your
    version does make sense to me.

    Frederick Chow
    Hong Kong.

    "Ardus Petus" <ardus.petus@laposte.net> wrote in message
    news:ekSYnmCQGHA.5924@TK2MSFTNGP09.phx.gbl...
    > =ROUNDUP(A2*96;0)/96
    >
    > --
    > HTH
    > --
    > AP
    >
    > "Frederick Chow" <PleaseRemoveThishkmusc@yahoo.com> a écrit dans le
    > message
    > de news:eWTewVCQGHA.1088@tk2msftngp13.phx.gbl...
    >> Hi all,
    >>
    >> I have a column of numbers in [hh]:mm format. Now I want to round up each
    >> time to the next 15 minutes, e.g.
    >>
    >> 15:43 -> 15:45
    >> 15:46 -> 16:00
    >>
    >> The ROUNDUP function does not provide a direct solution for me. Any
    >> suggestion? Thanks a lot.
    >>
    >> Frederick Chow
    >> Hong Kong.
    >>
    >>

    >
    >




  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,723
    A slight variation to perhaps make the purpose a little more transparent

    =CEILING(A1,"00:15")

+ 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