Round time off to nearest 15 minutes and then convert format

Purple_Haze

New Member
Joined
Jun 30, 2019
Messages
3
I'm struggling to work out a formula to round off time to the nearest 15 minutes.

Basically the numbers are timesheet entries and they need to be rounded in the following format:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Current Format[/TD]
[TD]Desired Output[/TD]
[/TR]
[TR]
[TD]02:19:04[/TD]
[TD]2.5[/TD]
[/TR]
[TR]
[TD]01:37:00[/TD]
[TD]1.5[/TD]
[/TR]
[TR]
[TD]03:55:23[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]

I've been able to round it in decimal points, but just can't get the formula to work perfectly.

This is what I have done...

First calculation:
=HOUR(R[4]C[-3]) + MINUTE(R[4]C[-3]) /60 +SECOND(R[4]C[-3]) / 3600
Second calculation:
=FLOOR(RC[-2],0.25)

It's not working, so I must be completely wrong. Any help would be much appreciated!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Do you want to round up, round down, or round to the nearest 0.25?
 
Upvote 0
In that case, how about


Book1
AB
202:19:042.25
301:37:001.50
403:55:234.00
List
Cell Formulas
RangeFormula
B2=MROUND(A2*24,0.25)
 
Upvote 0
In that case, how about

AB

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]2[/TD]
[TD="align: right"]02:19:04[/TD]
[TD="align: right"]2.25[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]01:37:00[/TD]
[TD="align: right"]1.50[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]03:55:23[/TD]
[TD="align: right"]4.00[/TD]

</tbody>
List

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]B2[/TH]
[TD="align: left"]=MROUND(A2*24,0.25)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

This worked perfectly! Thanks Fluff!
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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