Excel 2010 IF function

Posted on 2011-10-27
Last Modified: 2012-05-12
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,

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

Question by:perla1962
    LVL 39

    Accepted Solution

    should do it

    MIN(D2,40) gets you the number of straight hours
    MAX(D2-40,0) gets you the number of overtime hours
    IF(B2=2,3,2)) gets you 3 for department 2, and 2 otherwise


    Author Closing Comment

    Yes that is correct thank you, I made a minor mistake and you got it right.
    LVL 43

    Expert Comment

    by:Saqib Husain, Syed
    to further simplify by eliminating the if simply replace




    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
    This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
    The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
    This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now