# 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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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...

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

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

You're welcome, thanks for the feedback.

Replies
5
Views
171
Replies
6
Views
170
Replies
1
Views
396
Replies
2
Views
333
Replies
5
Views
221

1,203,524
Messages
6,055,905
Members
444,832
Latest member
bgunnett8

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