How to Roundup clock in and clock out times

Robert Wyatt

Board Regular
Joined
Jul 15, 2012
Messages
102
Office Version
  1. 2019
Platform
  1. Windows
I would like to have a excel formula that would roundup to nearest whole number. Say I have two times and I clock in at 8:17 and clock out at 11:56 that would be 3.65 hours. and I clock in 14:56 and clock out for luch at 17:05 then clock back in from luch at 17:34 then clock out for the day at 22:18. that would be 7.85. But after subtracting the breark from the total time it show to be 10.54. How would I round it to be 10.50?

 
10.54 to 10.5 isn't rounding up, it's rounding down. Are you wanting to just round the total? Did you want it to round to the nearest quarter hour or what?
I'm needing it to round to the nearest 10 Minutes I clock in at 55 minutes or after the hour. I also need it to round to the nearest 15 to 30 minutes. If I clock in at say 8:55 I need to round to 8:00. if I clock out and say 8:05 then I would need it to round to 8:00. thing more than 5 Mins to to round to the next 15 minutes.
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Does this work for you?

=MROUND(A1+"0:05","0:15")
I'm not sure. How would I install it into my formula (ROUND(IF((OR(C14="",D14="")),0,IF((D14<C14),((D14-C14)*24)+24,(D14-C14)*24))+IF((OR(E14="",F14="")),0,IF((F14<E14),((F14-E14)*24)+24,(F14-E14)*24)),2)
 
Upvote 0
First off I would suggest simplifying that. Why do you have so many IFs?
 
Upvote 0
Help request - formula simplification.xlsb
ABCDEFG
13ScheduleDay/DateShift BeginBreak StartBreak EndShift EndTotal Hours
1426 Oct 2024-
1527 Oct 2024-
1628 Oct 202408:17:0011:56:003.60
1729 Oct 2024-
1830 Oct 202414:56:0017:05:0017:34:0022:18:006.90
1931 Oct 2024-
201 Nov 2024-
21Total Weekly Hours:10.50
22Regular Hours10.50
23Overtime Hours:-
Sheet1
Cell Formulas
RangeFormula
B15:B20B15=B14+1
G14:G20G14=MROUND(D14-C14+F14-E14+AND(F14<C14,F14>0),15/3600)*24
G21G21=SUM(G14:G20)
G22G22=IF(G21="","",G21-G23)
G23G23=IF(G21<40,0,G21-40)
 
Upvote 0
Solution
Help request - formula simplification.xlsb
ABCDEFG
13ScheduleDay/DateShift BeginBreak StartBreak EndShift EndTotal Hours
1426 Oct 2024-
1527 Oct 2024-
1628 Oct 202408:17:0011:56:003.60
1729 Oct 2024-
1830 Oct 202414:56:0017:05:0017:34:0022:18:006.90
1931 Oct 2024-
201 Nov 2024-
21Total Weekly Hours:10.50
22Regular Hours10.50
23Overtime Hours:-
Sheet1
Cell Formulas
RangeFormula
B15:B20B15=B14+1
G14:G20G14=MROUND(D14-C14+F14-E14+AND(F14<C14,F14>0),15/3600)*24
G21G21=SUM(G14:G20)
G22G22=IF(G21="","",G21-G23)
G23G23=IF(G21<40,0,G21-40)
This works, but when I copied and pasted it into excel it changed some how. Where you showed 3.60 hrs. in mine it shows 3.70, but the other times shows the same as in yours.
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,139
Members
453,021
Latest member
Justyna P

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