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!
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!