How to Roundup clock in and clock out times

Robert Wyatt

Board Regular
Joined
Jul 15, 2012
Messages
97
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?

 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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?

Excel Formula:
=TRUNC(10.54,1)
 
Upvote 0
Here is the formula I use how would I where =TRUNC(10.54,1) into it?

=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
Here is the formula I use how would I where =TRUNC(10.54,1) into it?

=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)
If your formula returns the 10.54 then this :

Excel Formula:
=TRUNC(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),1)
 
Upvote 0
That works but it show it to be round it up to much my final total hours should show to be 10.5 but it shows to be 9.0 with the =Trunc in it. it's take an 1.5 hrs away.
 
Upvote 0
That works but it show it to be round it up to much my final total hours should show to be 10.5 but it shows to be 9.0 with the =Trunc in it. it's take an 1.5 hrs away.
Can you send us your data and formulas.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: https://www.mrexcel.com/board/help/xl2bb/

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.
 
Upvote 0
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?
 
Upvote 0
Hopefully this is what you was asking for.
Book1
ABCDEFG
13ScheduleDay/DateShift BeginBreak StartBreak EndShift EndTotal Hours
14Sat 10/260.00
15Sun 10/270.00
16Mon 10/288:17 AM11:56 AM3.65
17Tue 10/290.00
18Wed 10/302:56 PM5:05 PM5:34 PM10:18 PM6.88
19Thu 10/310.00
20Fri 11/010.00
21Total Weekly Hours:10.53
22Regular Hours10.53
23Overtime Hours:0.00
Sheet1
Cell Formulas
RangeFormula
B15:B20B15=B14+1
G14:G20G14=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)
G21G21=SUM(G14:G20)
G22G22=IF(G21="","",G21-G23)
G23G23=IF(G21<40,0,G21-40)
 
Upvote 0
In post 1 you state that there are 6 times that are to be recorded, 3 clock in and 3 clock out although the worksheet in post 8 only uses 4 times.

You also state that you want to round up to the nearest whole number but your also wanted the 10.54 to be rounded to 10.50. 11.00 would be the nearest whole number.

What do you want to do?

How to Roundup clock in and clock out times.xlsm
BCDEFGHIJKL
3
4Clock In08:17:00I 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?
5Clock Out11:56:003.65
6Break3.00
7Clock In14:56:00
8Clock Out17:05:002.15
9Break0.48
10Clock In17:34:00
11Clock Out22:18:004.73
12
13Elapsed14.02
14Breaks3.48
15Work10.53
16
Sheet1
Cell Formulas
RangeFormula
E5,E11,E8E5=(D5-D4)*24
E6,E9E6=(D7-D5)*24
E13E13=($D$11-$D$4)*24
E14E14=((D7-D5)*24)+((D10-D8)*24)
E15E15=E13-E14
 
Upvote 0
I work for Dollar General and they round our time i'm not sure how or what program there using, but when I checked my pay stub today they should me to have 10.50 hrs. I on my computer where I keep my time registered it showed me to have 10.53 hrs. So to answer question what do I want to do. I have no idea. So thanks for the help I guess I'll just not worry about it. I know talking to them want help they do give out what programs they use.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,190
Members
452,616
Latest member
intern444

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