Round off time to the Nearest Hour

chiswickbridge

Board Regular
Joined
Feb 2, 2013
Messages
126
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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,142
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
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,195,936
Messages
6,012,394
Members
441,695
Latest member
MickRobertson

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
Top