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:

Current FormatDesired Output
02:19:042.5
01:37:001.5
03:55:234

<tbody>
</tbody>

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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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
202:19:042.25
301:37:001.50
403:55:234.00

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
List

Worksheet Formulas
CellFormula
B2=MROUND(A2*24,0.25)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

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

Forum statistics

Threads
1,214,874
Messages
6,122,034
Members
449,061
Latest member
TheRealJoaquin

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