Calculating a Clock-Out Time depending on Hours/Days worked so far for the Week

mgreene

New Member
Joined
Nov 25, 2012
Messages
1
I'm not sure if this is possible, I've tried a few different things but the formula is too complex for my knowledge. Basically, I would like to look at my employees' hours worked for the week, the number of days they have left to work that week, and determine what their clock out time should be. For a very simple example, if my goal is to keep everyone at 40 hours or under, and I have an employee who's worked 2 out of 5 days and already has accrued 16 hours, then the formula would take 40-16 and divide the remaining 24 hours up over the three days they have left work. I put the table below as Dispatcher 1. I also need to calculate the projected clock-out factoring in a half-hour lunch being taken that day. This way, no matter when they clock-in, I can easily look at this table and it will tell me how many hours they have left to work before they get to 40 and, if divided evenly, what time they should be clocking out to keep their schedule as regular as possible. I know what I want the formula to do, I am just having trouble converting time from a general value (i.e. 20 hours) to a time of day (17:00). I am using Windows 7 and Microsoft Excel 2007 if that helps.

This ideally is a spreadsheet that I use on a daily basis, week to week. In the table below, I would be opening this spreadsheet on Wednesday morning, inputting their hours worked thus far in order to see how much time they have left (before going over 40) and spreading the remaining time evenly over Wednesday and Thursday. I didn't use formulas for the table below, I did the math in my head. It's easy to do in an example like the one below, but when you're looking at 20+ employees who are all clocking in at different times it makes it a little more difficult.
For the days remaining column, I'm using this formula "=COUNTBLANK(B7:H7)-2" because everyone is on a 5-day work week.

Excel 2007
ABCDEFGHIJKL
22SUNMONTUEWEDTHUFRISATHours WorkedDays RemainingClocked InProjected ClockOut
23Dispatcher 18.008.008.00OFFOFF24.0028:0016:30
24Dispatcher 29.409.2010.60OFFOFF29.2028:0013:54

<COLGROUP><COL style="BACKGROUND-COLOR: #e0e0f0"><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL></COLGROUP><THEAD>
</THEAD><TBODY>
</TBODY>
Dispatcher Hours
The end result that I'm looking for is a formula for Column L that will take hours worked, days remaining, clocked in time, and a half-hour lunch into account and then will give me a clock out time for the current day. If I'm unclear about any of the above please ask questions. I know excel can do this I just need to find someone smarter than me, that's why I'm here! :)
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
mgreene,

Try this.......


Excel 2007
ABCDEFGHIJKL
22SunMonTueWedThuFriSatHrs WorkedDays RemainingClocked InProjected Clock Out
23Dispatcher 108.0008.0008.00OffOff24208.0016.30
24Dispatcher 209.4009.2010.50OffOff29.2208.0013.54
Sheet1
Cell Formulas
RangeFormula
J23=COUNTBLANK(B23:F23)
L23=K23+TIME(TRUNC(((40-I23)/2)+0.5),((((40-I23)/2)+0.5)-TRUNC(((40-I23)/2)+0.5))*60,)



Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,216,267
Messages
6,129,792
Members
449,535
Latest member
Piaskun

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