#1   Report Post  
ChrisW
 
Posts: n/a
Default Rounding Time?

I have a table of times, server names, and error counts. The time
stamps are by the second. How do I round times to the nearest 15
minutes? (Really, I need to the next 15, so I suspect this is a ceiling
function.)

Thanks in advance,

ChrisW

  #2   Report Post  
Jon Peltier
 
Posts: n/a
Default

Excel stores date-time values as a whole number for the date and a
fraction for the time. 15 minutes is 15/60 * 1/24 = 0.01041666666667.

But you can put your value into cell A1, and 0:15 into cell B1, and use
this formula to get a rounded up value. Format as time to read it.

=CEILING(A1,B1)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

ChrisW wrote:
I have a table of times, server names, and error counts. The time
stamps are by the second. How do I round times to the nearest 15
minutes? (Really, I need to the next 15, so I suspect this is a ceiling
function.)

Thanks in advance,

ChrisW

  #3   Report Post  
ChrisW
 
Posts: n/a
Default

Oh! Yes, that works. Thank you very much.

ChrisW

Jon Peltier wrote:
Excel stores date-time values as a whole number for the date and a
fraction for the time. 15 minutes is 15/60 * 1/24 = 0.01041666666667.

But you can put your value into cell A1, and 0:15 into cell B1, and use
this formula to get a rounded up value. Format as time to read it.

=CEILING(A1,B1)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/


Reply
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
Rounding off TIME FJ Shepley & JM Pfohl Excel Discussion (Misc queries) 2 August 19th 05 12:58 AM
Rounding of Time Morten Excel Worksheet Functions 2 August 5th 05 09:11 PM
Rounding Time Calculations Terry Bennett Excel Worksheet Functions 3 June 14th 05 11:53 PM
rounding time question lbfries Excel Worksheet Functions 3 April 6th 05 08:23 PM
Rounding time in excel (2003) Alan Excel Discussion (Misc queries) 3 January 11th 05 04:44 PM


All times are GMT +1. The time now is 07:34 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"