Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Rounding time UP to nearest fourth-hour

In cell B6, I have a time value in hours and minutes. I have a formula
that rounds it DOWN to fourths and expresses the hours in 00, .25, .50
and .75. For example, if the time in B6 is 8:26, it produces 8.25
hours. 8:43 produces 8.5 hours. In that manner, it always rounds it
DOWN to the nearest quarter. The formula I'm using is:

=INT(G6*24)+INT(MOD(G6*24,1)/0.25)*0.25

Can somebody please tell me how to modify this formula to round it UP
instead of DOWN? So, for example, 8:01 through 8:15 would produce 8.25
hours. 8:16 through 8:30 would produce 8.50 hours. 8:31 through 8:45
would produce 8.75, and 8:76 through 9:00 would produce 9.0 hours.

I've played with this thing until I'm blue in the face and can't make
it work.

This would save a lot of people a lot of time and errors in hand-
calculating their time sheets at work.

Please reply only to the group.

Thanks a heap,
Ron M.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Rounding time UP to nearest fourth-hour

Here's one way:

=CEILING(G6*24*60,15)/60

Format the cell as number with 2 dp.

Hope this helps.

Pete


On Sep 10, 9:12 pm, wrote:
In cell B6, I have a time value in hours and minutes. I have a formula
that rounds it DOWN to fourths and expresses the hours in 00, .25, .50
and .75. For example, if the time in B6 is 8:26, it produces 8.25
hours. 8:43 produces 8.5 hours. In that manner, it always rounds it
DOWN to the nearest quarter. The formula I'm using is:

=INT(G6*24)+INT(MOD(G6*24,1)/0.25)*0.25

Can somebody please tell me how to modify this formula to round it UP
instead of DOWN? So, for example, 8:01 through 8:15 would produce 8.25
hours. 8:16 through 8:30 would produce 8.50 hours. 8:31 through 8:45
would produce 8.75, and 8:76 through 9:00 would produce 9.0 hours.

I've played with this thing until I'm blue in the face and can't make
it work.

This would save a lot of people a lot of time and errors in hand-
calculating their time sheets at work.

Please reply only to the group.

Thanks a heap,
Ron M.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Rounding time UP to nearest fourth-hour

=CEILING(G6*24,0.25)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



wrote in message
ups.com...
In cell B6, I have a time value in hours and minutes. I have a formula
that rounds it DOWN to fourths and expresses the hours in 00, .25, .50
and .75. For example, if the time in B6 is 8:26, it produces 8.25
hours. 8:43 produces 8.5 hours. In that manner, it always rounds it
DOWN to the nearest quarter. The formula I'm using is:

=INT(G6*24)+INT(MOD(G6*24,1)/0.25)*0.25

Can somebody please tell me how to modify this formula to round it UP
instead of DOWN? So, for example, 8:01 through 8:15 would produce 8.25
hours. 8:16 through 8:30 would produce 8.50 hours. 8:31 through 8:45
would produce 8.75, and 8:76 through 9:00 would produce 9.0 hours.

I've played with this thing until I'm blue in the face and can't make
it work.

This would save a lot of people a lot of time and errors in hand-
calculating their time sheets at work.

Please reply only to the group.

Thanks a heap,
Ron M.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Rounding time UP to nearest fourth-hour

You guys are great. THANK YOU, THANK YOU! Interesting how you all
approached it differently.

Don't even pay for a drink when I'm around.

Thanks again,

Ron M.

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
How do I convert time to the nearest 1/4 hour with a 7 min. window Bigbus Excel Worksheet Functions 4 August 28th 06 03:09 PM
How do I round time to the nearest quarter of an hour Meghan New Users to Excel 6 July 7th 06 06:36 PM
rounding up time to quarter hour increments kdp145 Excel Worksheet Functions 0 March 14th 06 06:43 PM
Need to round the time to the nearest quarter hour. Help John Excel Discussion (Misc queries) 1 February 11th 06 06:41 AM
Rounding time to nearest Hour SierraRose Excel Worksheet Functions 1 July 24th 05 02:57 AM


All times are GMT +1. The time now is 11:34 AM.

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

About Us

"It's about Microsoft Excel"