Rounding time down at 5 mins and up at 6 mins past quarter hour

VOR

Board Regular
Joined
Apr 11, 2009
Messages
59
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
Hi All,
I am looking for some help with a formula that will round down if 5 mins past the quarter of hour or round up to the next quarter of the hour if 6 mins past
Examples

[TABLE="width: 500"]
<tbody>[TR]
[TD]10:01[/TD]
[TD]Result would be 10:00[/TD]
[/TR]
[TR]
[TD]10:04[/TD]
[TD]Result would be 10:00[/TD]
[/TR]
[TR]
[TD]10:06[/TD]
[TD]Result would be 10:15[/TD]
[/TR]
[TR]
[TD]10:15[/TD]
[TD]Result would be 10:15[/TD]
[/TR]
</tbody>[/TABLE]


Currently using =ROUND(F5*(24*60/15),0)/(24*60/15) but this rounds down at 7 mins and up at 8 mins

Need rounds down at 5 mins and up at 6 mins

Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Another way:

[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
A​
[/td][td="bgcolor:#C0C0C0"]
B​
[/td][td="bgcolor:#C0C0C0"]
C​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
1​
[/td][td="bgcolor:#F3F3F3"]
[/td][td="bgcolor:#F3F3F3"]
[/td][td="bgcolor:#F3F3F3"]
[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
2​
[/td][td]
10:01​
[/td][td="bgcolor:#E5E5E5"]
10:00​
[/td][td]B2: =MROUND(A2 + "0:1:30", "0:15")[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]
10:04​
[/td][td="bgcolor:#E5E5E5"]
10:00​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
4​
[/td][td]
10:06​
[/td][td="bgcolor:#E5E5E5"]
10:15​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
5​
[/td][td]
10:15​
[/td][td="bgcolor:#E5E5E5"]
10:15​
[/td][td][/td][/tr]
[/table]
 
  • Like
Reactions: VOR
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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