Rounding a Time(HH:MM) field

soto

New Member
Joined
Apr 8, 2002
Messages
3
Hi there,
Is is possible to round a Time(HH:MM) formated field that all ready has a formula in it<=IF(D432="","",SUM((D432-E432)))> to be rounded to the nearest 15; 30; 45 minutes.
Like for example if I have 5:10(Five hours & ten minutes) and want to round it up to 5:15. Is this possible??

Thanks
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
On 2002-04-15 09:17, soto wrote:
Hi there,
Is is possible to round a Time(HH:MM) formated field that all ready has a formula in it<=IF(D432="","",SUM((D432-E432)))> to be rounded to the nearest 15; 30; 45 minutes.
Like for example if I have 5:10(Five hours & ten minutes) and want to round it up to 5:15. Is this possible??

Thanks

=ROUND(A1*24/0.25,0)*(0.25/24)

where A1 houses a time value whether or not computed by means of a formula.

Maybe you want to include this directly in your formula:

=IF(D432,ROUND((D432-E432)*24/0.25,0)*(0.25/24),"")

Note. I slightly modified your formula because you don't SUM((D432-E432)) is identical to D432-E432.
 
Upvote 0

Forum statistics

Threads
1,213,486
Messages
6,113,932
Members
448,533
Latest member
thietbibeboiwasaco

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