Round to nearest

Robert Wyatt

Board Regular
Joined
Jul 15, 2012
Messages
108
Office Version
  1. 2019
Platform
  1. Windows
I'm trying to get my time to round to the nearest .15 minutes,.25 minutes and .50 minutes. I have included a L2BB showing what I have. Could you please tell me what it is I'm doing wrong?

Book1
ABCDEF
1INOUTINOUTHOURSMROUND
25:00 PM9:46 PM4.774.77
35:00 PM10:16 PM5.275.27
44:00 PM10:16 PM6.276.27
56:00 PM10:16 PM4.274.27
60.000.00
70.000.00
80.000.00
9Total Hrs:20.5820.58
10Should Be: 20.50
Sheet1
Cell Formulas
RangeFormula
E2:E8E2=ROUND(IF((OR(A2="",D2="")),0,IF((D2<A2),((D2-A2)*24)+24,(D2-A2)*24))+IF((OR(C2="",B2="")),0,IF((B2<C2),((B2-C2)*24)+24,(B2-C2)*24)),2)
F2F2=MROUND(E2,0.15/(60*24))
F3:F8F3=MROUND(E3,15/(60*24))
E9:F9E9=SUM(E2:E8)
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try

Excel Formula:
=MROUND(E2,0.15)
 
Upvote 0
Solution
Well, looks like I saved you from an Excel 'panic attack'! You're welcome!
 
Upvote 0
Robert,

Please Note: In the future, when marking a post as the solution, please mark the post that contains the solution (not your own post acknowledging that some other post was the solution).
When a post is marked as the solution, it is then shown right underneath the original question so people viewing the question can easily see the question and solution in a single quick glance without having to hunt through all the posts.

I have updated this thread for you.
 
Upvote 0

Forum statistics

Threads
1,225,462
Messages
6,185,129
Members
453,279
Latest member
MelissaOsborne

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