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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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