#1   Report Post  
FJ Shepley & JM Pfohl
 
Posts: n/a
Default Rounding off TIME

I need the following formula to round off to the nearest minute. Currently
it just drops the seconds off without rounding the minute off.

+b11-b10

where...
B10 is currently =TIME(HOUR(B10),MINUTE(B10)+$D$43/$D$40*$D$44/100,0)
B11 is currently =TIME(HOUR(B11),MINUTE(B11)+$D$43/$D$40*$D$44/100,0)

D43 is currently 189.52
D40 is currently 15.47
D44 is currently 100

I can't seem to find the proper cell format to show the minutes rounded off.
These cells are from a time sheet calculating how often a new batch can be
run.
I hope this is enough info.
Thanks,
Frank.



  #2   Report Post  
Fred Smith
 
Posts: n/a
Default

Use the Mround function. Mround will round to the nearest multiple of the number
you specify. Just enter one minute as the multiple. Excel stores times as a
fraction of a day, so one minute is 1/24/60. Therefore, use:

=mround(b11-b10,1/24/60)

If you prefer to see a time format in the formula, you can use:

=mround(b11-b10,"0:01:00")

--
Regards,
Fred


"FJ Shepley & JM Pfohl" wrote in message
...
I need the following formula to round off to the nearest minute. Currently
it just drops the seconds off without rounding the minute off.

+b11-b10

where...
B10 is currently =TIME(HOUR(B10),MINUTE(B10)+$D$43/$D$40*$D$44/100,0)
B11 is currently =TIME(HOUR(B11),MINUTE(B11)+$D$43/$D$40*$D$44/100,0)

D43 is currently 189.52
D40 is currently 15.47
D44 is currently 100

I can't seem to find the proper cell format to show the minutes rounded off.
These cells are from a time sheet calculating how often a new batch can be
run.
I hope this is enough info.
Thanks,
Frank.





  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=TIME(HOUR(B10),MINUTE(B10),$D$43/$D$40*$D$44*60/100)

In article ,
"FJ Shepley & JM Pfohl" wrote:

I need the following formula to round off to the nearest minute. Currently
it just drops the seconds off without rounding the minute off.

+b11-b10

where...
B10 is currently =TIME(HOUR(B10),MINUTE(B10)+$D$43/$D$40*$D$44/100,0)
B11 is currently =TIME(HOUR(B11),MINUTE(B11)+$D$43/$D$40*$D$44/100,0)

D43 is currently 189.52
D40 is currently 15.47
D44 is currently 100

I can't seem to find the proper cell format to show the minutes rounded off.
These cells are from a time sheet calculating how often a new batch can be
run.
I hope this is enough info.
Thanks,
Frank.

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 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
unmet challenge boris Excel Worksheet Functions 2 March 16th 05 02:13 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 11:57 PM.

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"