Link to home
Start Free TrialLog in
Avatar of perla1962
perla1962

asked on

Excel 2010 IF function

Hi,
I’m working with my dad to help him resolve problems in his company, I need to be able to calculate gross pay using IF function.
Dept. 1 employees receive straight time for 40 hours or less and double time for hours over 40.
Dept. 2 employees received straight time for 40 hours or less and Tripe time for hours over 40.
Thank you,

Name                       
                         Dept.             Rate               Hours                         Gross Pay
Sally Wed          1                 10                   20       
Joe Reed           2                 10                   50      
Jill Smith            1                 20                   44      

ASKER CERTIFIED SOLUTION
Avatar of nutsch
nutsch
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of perla1962
perla1962

ASKER

Yes that is correct thank you, I made a minor mistake and you got it right.
Avatar of Saqib Husain
to further simplify by eliminating the if simply replace

IF(B2=2,3,2)

by

(4-b2)