Forum Discussion

Rachael_Dart's avatar
Rachael_Dart
Copper Contributor
Mar 22, 2021
Solved

Help with IF formula please

I am creating a spreadsheet to help me calculate our staff's payroll.  I need a formula to help me work out the standard pay and overtime.   So what I want excel to do is-   If the hours in cell A1...
  • HansVogelaar's avatar
    HansVogelaar
    Mar 23, 2021

    Rachael_Dart 

    Thanks! Your values are not a number of hours such as 41, but a time value such as 41:00

    With a total time in E9, the formula for regular hours is

     

    =MIN(E9,40/24)

     

    and the formula for overtime is

     

    =MAX(E9-40/24,0)

     

    Format the cells with these formulas as [h]:mm

Resources