calculating regular hours and OT hours.

Hello,

I am looking for some help with formulas and where to place them in order to calculate regular hours worked and overtime hours for my work time log. Here is a screenshot of my time log:

User uploaded file As I enter a total in "regular hours" I want that to populate in "regular hours" week total. As I add new days, I would like that number to update. for example: If on monday i enter 8 in "regular hours", 8 should show up in "regular hours" week totals. Then when i enter 8 on tuesday, the total week hours should update to 16 and so on. However, I do not want this number to exceed 40. after it hits 40, I would like it to poplulate over 40 hours in the OT hours week total. I would like to only have to enter a start time and stop time and have the hours populate in regular hours automaticlly. If i enter 10 hours each day monday thru thursday, then on friday i want the hours to populate in OT(hours) instead of Regular(hours). I am not concerned with Sick, Vacation, and Holiday(hours). i can enter those manually. if any additional explaination are needed please let me know. please note that i have no experience with formulas or where to enter certain ones. I do not know what each part of a formula does, i have only copied from what iv seen online and hoped it worked but unfortunatly so far no luck. Thank you to anyone who can help me.

latest version of numbers-OTHER, Mac OS X (10.6.7)

Posted on Jul 9, 2013 7:10 PM

Reply
4 replies

Jul 10, 2013 6:52 PM in response to Tommyboy29

Hi Tommy,


Don't feel bad if you are having some difficulty with this programing task. It's not a basic one. The combined requirement for OT based on the 8-hour day and the 40-hour week makes it difficult.


I think this solution will work for you:


User uploaded file

I'll give you the formulas for the first day of the week, and you can select them and Fill Down.


For F2:


=((TIMEVALUE(D)-TIMEVALUE(C))*24)-E


For G2:


=MIN(MAX(SUM(OFFSET($F$1, 0,0,ROW()))-40, 0), F2)


For H2:


=MAX(F-8, 0)


For I2:


=MAX(G2,H2)


For J2:


=MAX(F2-I2, 0)


If you want to send me an e-mail, I'll return my draft document to you for testing.


You don't mention the possibility of a starting time of day later than the stop time of day, as can happen if someone works past Midnight. If this situation can occur, we can cover it with some additional complexity.


Jerry

Jul 9, 2013 7:55 PM in response to Tommyboy29

You will need some extra work columns, that can be hidden once you've set them up.


---


First, format your columns properly:


Start, stop, Breaks time: Date and Time, Date (none), Time (H:mm PM) (or whatever you prefer)


Hours (Regular, OT): Duration (h:m)


---


Extra columns:


Worked =IF(ISBLANK(Stop time), DURATION(,,0), $Stop time - $Start time)


Subtotal

The formula for the first cell is =Worked


If the Subtotal column ends up in column G, then the formula for the second cell is =G2+Worked

(just click in the cell above, and Numbers will fill it in for you)


Once you have entered the formulas in the first couple of rows, just drag them down to repeat in the rest of the column.


---


Also, create an extra table, with just a few rows, for permanent info,

e.g. Normal =DURATION(,,40)

where "Normal" is a heading, not a regular cell.


---


Regular =IF(Subtotal<=Normal, Subtotal, Subtotal-Normal)


OT =IF(Regular<Normal, DURATION(,,0), Subtotal-Regular)


---


It's a lot to take in if you are new to all of this. 🙂

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

calculating regular hours and OT hours.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.