# When do I need to clock out?

#### mst3kr

##### New Member
Hello all!

I am tracking Clock-In's & Clock-Outs for some employees, and am responsible to be sure they are not accruing too much overtime. The Time column is an export from our internal HR system and the values come out as Time (7:32:00 AM, 1:00:00 PM, etc.). To keep that data whole, what I'm wanting to due is key an integer (not a time) into a cell to calculate how many more hours that an employee can work based on how many hours they've worked so far.

For example, I would key in '8' into a cell to denote that is the total # of hours the employee can work that day, and in the empty 'Out' cell under Time (see below), it would tell me when time that employee would need to clock out to hit that 8 hours. Thus, the answer in the empty 'Out' cell would be 16:32... I can make all this work if I type 8:00 into a cell. However, I want to be lazy and just type in an integer and have the formulas do the work; I just haven't been able to find the correct formulaic conversion to do what I'm looking for. Not sure if I need a helper cell to do the trick or...? I'm sure it's a fairly easy solution but I'm not seeing it.

Any help?

 Time Hours In 7:32 Lunch Out 12:00 4:28 Lunch In 13:00 Out Total

-Greg

### Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

#### mst3kr

##### New Member
Hello all!

I am tracking Clock-In's & Clock-Outs for some employees, and am responsible to be sure they are not accruing too much overtime. The Time column is an export from our internal HR system and the values come out as Time (7:32:00 AM, 1:00:00 PM, etc.). To keep that data whole, what I'm wanting to due is key an integer (not a time) into a cell to calculate how many more hours that an employee can work based on how many hours they've worked so far.

For example, I would key in '8' into a cell to denote that is the total # of hours the employee can work that day, and in the empty 'Out' cell under Time (see below), it would tell me when time that employee would need to clock out to hit that 8 hours. Thus, the answer in the empty 'Out' cell would be 16:32... I can make all this work if I type 8:00 into a cell. However, I want to be lazy and just type in an integer and have the formulas do the work; I just haven't been able to find the correct formulaic conversion to do what I'm looking for. Not sure if I need a helper cell to do the trick or...? I'm sure it's a fairly easy solution but I'm not seeing it.

Any help?

 Time Hours In 7:32 Lunch Out 12:00 4:28 Lunch In 13:00 Out Total

-Greg

I should've noted that I will also need that integer cell to be able to handle non full hours, as well; i.e., 8.5, 7.5, 7.25, etc...

#### jtakw

##### Well-known Member
Hi,

If I understand correctly, this should do what you need:

Book3.xlsx
ABCD
1TimeHoursInput
2In7:327.75
3Lunch Out12:00
4Lunch In13:00
5Out16:17
Sheet977
Cell Formulas
RangeFormula
B5B5=B2+D2/24+B4-B3

#### mst3kr

##### New Member
Hi,

If I understand correctly, this should do what you need:

Book3.xlsx
ABCD
1TimeHoursInput
2In7:327.75
3Lunch Out12:00
4Lunch In13:00
5Out16:17
Sheet977
Cell Formulas
RangeFormula
B5B5=B2+D2/24+B4-B3
Thank you jtakw! That worked perfectly! I knew there had to be a pretty easy answer; I think I was just way overcomplicating the formula I needed...

#### jtakw

##### Well-known Member
You're welcome, thanks for the feedback.

Replies
1
Views
78
Replies
21
Views
395
Replies
12
Views
266
Replies
3
Views
713
Replies
22
Views
487

1,172,046
Messages
5,878,878
Members
433,380
Latest member

### 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.

### Which adblocker are you using?

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

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