Round up a time to the next 15 minutes

F

Frederick Chow

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.
 
J

JE McGimpsey

One way:

=CEILING(A1,1/96)



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

Frederick Chow

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

Fredeick Chow
Hong Kong
JE McGimpsey said:
One way:

=CEILING(A1,1/96)



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

Frederick Chow said:
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.
 
F

Frederick Chow

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

Frederick Chow
Hong Kong.

Ardus Petus said:
=ROUNDUP(A2*96;0)/96

--
HTH
--
AP

"Frederick Chow" <[email protected]> a écrit dans le
message
de news:[email protected]...
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.
 
D

daddylonglegs

A slight variation to perhaps make the purpose a little more
transparent

=CEILING(A1,"00:15")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top