LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default rounding up time to quarter hour increments


There's more than one way to do this depending on whether you're just
concerned about what displays or if you want to use the times and dates
generated for calculations..

For the first in both B1 & C1

=CEILING(A1,"00:15")

format B1 as date, C1 as time

OR....

In B1

=INT(CEILING(A1,"00:15"))

format as date

in C1

=MOD(CEILING(A1,"00:15"),1)

format as time

edit: or even.....

to give text results

=TEXT(CEILING(B1,"00:15"),"m/d/yyy")

and

=TEXT(CEILING(A1,"00:15"),"hh:mm AM/PM")


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=522322

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time Increments Andrew C Excel Worksheet Functions 1 February 10th 06 12:42 AM
Excel Time Manipulation BFiedler Excel Discussion (Misc queries) 0 September 15th 05 01:15 AM
rounding in quarter increments toastnbutter Excel Worksheet Functions 2 July 23rd 05 09:02 AM
Rounding time in excel (2003) Alan Excel Discussion (Misc queries) 3 January 11th 05 04:44 PM
how do you subtract military time? example 12:00 - 07:00 = 5 hour. Bill Excel Worksheet Functions 1 October 27th 04 08:25 PM


All times are GMT +1. The time now is 02:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"