Time rounding help

jcaptchaos2

Well-known Member
Joined
Sep 24, 2002
Messages
1,032
Office Version
  1. 365
Platform
  1. Windows
Hello,


I am using this formula to round time
Code:
=ROUND(E7*96,0)/96
and am wondering if it could be modified to ignor the seconds as in cell "E7" I sometimes would have 3:37:35 and it will round forward to 3:45. I would like 3:37 to round back and 3:38 to round forward.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hello,


I am using this formula to round time:

=ROUND(E7*96,0)/96

and am wondering if it could be modified to ignor the seconds as in cell "E7" I sometimes would have 3:37:35 and it will round forward to 3:45. I would like 3:37 to round back and 3:38 to round forward.
So what are you saying?

You would like 3:37:35 rounded to the nearest minute then rounded to the nearest 15 mins?
 
Upvote 0
I guess what I would like is if it was 3:37:59 to be rounded back to 3:30, it is a long story but what the employee sees is 3:37 and some see it get rounded to 3:30 and some see it get rounded to 3:45. I would like all of the 3:37's to get rounded back to 3:30.
 
Upvote 0
I guess what I would like is if it was 3:37:59 to be rounded back to 3:30, it is a long story but what the employee sees is 3:37 and some see it get rounded to 3:30 and some see it get rounded to 3:45. I would like all of the 3:37's to get rounded back to 3:30.
Still not sure what you want.

This will round to the nearest minute then round to the nearest 15 mins.

=ROUND((ROUND(E7*1440,0)/1440)*96,0)/96
 
Upvote 0
Thanks for the help, Barry your advice works perfect, T.Valko thanks for your advice also.
 
Upvote 0
I think you can achieve the required rounding by subtracting 30 seconds from the original value, i.e.

=ROUND((E6-"0:00:30")*96,0)/96

I just "simplified" that by multiplying the 30 seconds by 96 to get "0:48"....
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,671
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top