Using MROUND function for times greater than 24 hours

luffelman

New Member
Joined
Jun 9, 2015
Messages
2
I am working on a spreadsheet tracking employee hours. The mround function works just fine Mon - Fri when hours worked are always less than 24. However, I need to round up the total hours which usually brings the time to greater than 24 hours. The mround function does not seem to work then.

The formula I'm using is: =TIME(HOUR(a7*24),MROUND(MINUTE(a7*24),$B$1),0)

cell B1 contains the number 15

Thank you
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
The issue is rather with the TIME function.

Anyhow, try the following formula instead of your entire formula.

Code:
=MROUND(A7,$B$1/(24*60))

Remark: this assumes that A7 is a time field formatted as [h]:mm.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,737
Messages
6,126,558
Members
449,318
Latest member
Son Raphon

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