ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   I want to calculate overtime hours for employees (https://www.excelbanter.com/excel-worksheet-functions/166444-i-want-calculate-overtime-hours-employees.html)

ChefFrank

I want to calculate overtime hours for employees
 
I have the employees time for the week add up in P and I need regular time in
Q and overtime in R.
something like hours reg ot
54 40 14

pdberger

I want to calculate overtime hours for employees
 
Chef --
I'm not sure what the rest of your worksheet is like, but this might work:

P Q R
1 54 =MIN(P1,40) =P1-Q1

Hope that helps.

"ChefFrank" wrote:

I have the employees time for the week add up in P and I need regular time in
Q and overtime in R.
something like hours reg ot
54 40 14


JP[_3_]

I want to calculate overtime hours for employees
 
Regular hours: =IF(P140,40,P1)
Overtime: =IF(P140,P1-40,"0")

Or if you are listing the hours in column fashion...

Regular: =IF(SUM(P:P)40,40,SUM(P:P))
Overtime: =IF(SUM(P:P)40,SUM(P:P)-40,"0")


HTH,
JP


On Nov 16, 6:10 pm, ChefFrank
wrote:
I have the employees time for the week add up in P and I need regular time in
Q and overtime in R.
something like hours reg ot
54 40 14




All times are GMT +1. The time now is 12:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com