Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default what is the formula for rounding time up to 1/4 hr?

Does anyone know the formula for rounding up time to the next 1/4 increment?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default what is the formula for rounding time up to 1/4 hr?

The following formula will do what you asked...

=IF(MOD(A4,TIME(0,15,0))=0,A4,MROUND(A4+TIME(0,7,0 ),TIME(0,15,0)))

It requires the Analysis ToolPak Add-in to be selected in the Tools/Add-Ins
option on Excel's menu bar.

Rick


"Rosemary" wrote in message
...
Does anyone know the formula for rounding up time to the next 1/4
increment?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default what is the formula for rounding time up to 1/4 hr?

Just occurred to me... if your time values can have seconds in them, then
use this formula instead,

=IF(MOD(A4,TIME(0,15,0))=0,A4,MROUND(A4+TIME(0,7,2 9),TIME(0,15,0)))

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
The following formula will do what you asked...

=IF(MOD(A4,TIME(0,15,0))=0,A4,MROUND(A4+TIME(0,7,0 ),TIME(0,15,0)))

It requires the Analysis ToolPak Add-in to be selected in the
Tools/Add-Ins option on Excel's menu bar.

Rick


"Rosemary" wrote in message
...
Does anyone know the formula for rounding up time to the next 1/4
increment?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default what is the formula for rounding time up to 1/4 hr?

=CEILING(A1,1/96)
--
David Biddulph

"Rosemary" wrote in message
...
Does anyone know the formula for rounding up time to the next 1/4
increment?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default what is the formula for rounding time up to 1/4 hr?

And, of course, David's formula is far superior. You may want to use his
formula this way, though....

=CEILING(A1,TIME(0,15,0))

as it will be easier to modify the round-off time (for example, to next 30
minute increment) in the future.

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
Just occurred to me... if your time values can have seconds in them, then
use this formula instead,

=IF(MOD(A4,TIME(0,15,0))=0,A4,MROUND(A4+TIME(0,7,2 9),TIME(0,15,0)))

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
The following formula will do what you asked...

=IF(MOD(A4,TIME(0,15,0))=0,A4,MROUND(A4+TIME(0,7,0 ),TIME(0,15,0)))

It requires the Analysis ToolPak Add-in to be selected in the
Tools/Add-Ins option on Excel's menu bar.

Rick


"Rosemary" wrote in message
...
Does anyone know the formula for rounding up time to the next 1/4
increment?






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default what is the formula for rounding time up to 1/4 hr?

=ROUNDUP(A1*96,0)/96


"Rosemary" wrote:

Does anyone know the formula for rounding up time to the next 1/4 increment?

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
I need a formula with rounding up & rounding down to the nearest . Tony Kay Excel Worksheet Functions 3 May 29th 07 11:13 PM
Rounding Time? stoch05 Excel Worksheet Functions 2 October 18th 06 07:52 PM
Rounding Time Darts Excel Discussion (Misc queries) 11 March 23rd 06 10:55 PM
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


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