ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Creating Formulas for overtime (https://www.excelbanter.com/excel-worksheet-functions/18334-creating-formulas-overtime.html)

SumrGrl318

Creating Formulas for overtime
 
I need to create two formulas. One for overtime hours worked for 8-12 hours
and then another one for overtime hours worked over 12 hours.

Bob Phillips

Assuming that the start tgime is in A1, end time in B1,

8-12: =MIN(B1-A1-TIME(8,0,0),TIME(4,0,0))
12+: =MAX(0,B1-A1-TIME(12,0,0))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SumrGrl318" wrote in message
...
I need to create two formulas. One for overtime hours worked for 8-12

hours
and then another one for overtime hours worked over 12 hours.





All times are GMT +1. The time now is 06:46 PM.

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