View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Miguel Zapico
 
Posts: n/a
Default rounding up time to quarter hour increments

For column B use "=INT(A1)",
For column C "=TIME(HOUR(A1),INT(MINUTE(A1)/15+1)*15,0)
Adjust the format of the cells to what you want to show.
---

"kdp145" wrote:


i have a column with date and time(column A) and i want to roundup the
time to every quarter and then separate the date(column B) and time
(column C)

A B C
3/14/2006 10:43PM 3/14/2006 10:45PM
3/14/2006 11:34PM 3/14/2006 11:45PM
3/14/2006 11:52PM 3/15/2006 12:00AM

note that since 11:52PM rounds up to 12:00, i want to change the date
to the next day.


--
kdp145
------------------------------------------------------------------------
kdp145's Profile: http://www.excelforum.com/member.php...o&userid=29594
View this thread: http://www.excelforum.com/showthread...hreadid=522319