rounding hours and minutes to the nearest hour

rochandac

New Member
Joined
May 8, 2006
Messages
2
I need to convert hours and minutes to the nearest hour. For example 3:22 would become 3 hours. Is there a way to do this in excel?

Is it possible for me to convert hours and minutes to the nearest decimal? For example 3:22 would become 3.67.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I'm not sure how 3:22 would become 3.67

If you want to show a time in decimal and round to the nearest hour then you could use this formula

=round(A1*24,0)

format as general

where your time is in A1
 
Upvote 0
That does round to the nearest hour in that if A1 contains 3:22 it will return 3, if you just want to return the hours in time format 3:00 then you can use

=ROUND(A1*24,0)/24

or using MROUND function from Analysis ToolPak

=MROUND(A1,"01:00")

in both cases format as time
 
Upvote 0

Forum statistics

Threads
1,215,475
Messages
6,125,028
Members
449,205
Latest member
Eggy66

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