Round off time to the Nearest Hour

chiswickbridge

Board Regular
Joined
Feb 2, 2013
Messages
127
My work involves Time in dd:mm:yyy hh:mm format and then rounding off the time to the


nearest previous hour.


So if the time is 30 Nov 2016 12:33 hrs, it must show as 30 Nov 2016 12:00 hrs
Similarly the time is 30 Nov 2016 16:49 hrs, it must show as 30 Nov 2016 16:00 hrs


Always rounded off to the hour before the event


For Example :


30 Nov 2016 12:33 in numerical format is 42704.522, this must be reduced to 42704.50


30 Nov 2016 18:33 in numerical format is 42704.775, this must be reduced to 42704.75


So, I need a Formula to round off time to the nearest previous hour.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Maybe this

Excel 2010
AB
130/11/2016 12:3330/11/2016 12:00
230/11/2016 18:3330/11/2016 18:00
330/11/2016 16:4930/11/2016 16:00
Sheet7
Cell Formulas
RangeFormula
B1=INT(24*(A1-INT(A1)))/24+INT(A1)
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,581
Members
449,089
Latest member
Motoracer88

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