+ Reply to Thread
Results 1 to 4 of 4

Embedded bigger than smaller than-IF issue

Hybrid View

  1. #1
    Registered User
    Join Date
    07-13-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Embedded bigger than smaller than-IF issue

    Hi,

    Just need bit of help with a formula. Basically i'm trying to work out overtime rates for employees.

    The jist of the problem is that employees are paid their normal wage up untill 37.5 hours of work. From 37.5 to 40 hours of work they are paid 1.5 times their wage. Any hours over 40 are paid at 2 times the regular wage.

    So i need a formula that can work out their total pay. Im not sure what i could put in a dummy document to help you since it would just be one cell for their hourly wage, one for their hours worked and then one for the calculation. so you can reference any cell as an example and assume £6 as hourly rate

    Cheers!
    Last edited by shredster7; 07-13-2009 at 08:08 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Embedded bigger than smaller than-IF issue

    With the hours in A1, and rate in B1,

    =IF(A1<=37.5,B1*A1,IF(AND(A1>37.5,A1<40),B1*37.5+(A1-37.5)*(B1*1.5),IF(A1>=40,(B1*37.5)+(B1*1.5*2.5)+((A1-40)*B1*2))))
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    07-13-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Embedded bigger than smaller than-IF issue

    absolutely fantastic sweep, thankyou!

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,033

    Re: Embedded bigger than smaller than-IF issue

    this is shorter:

    =IF(A1<37,5;A1*B1;IF(A1<40;0,5*B1*(3*A1-37,5);0,5*B1*(4*A1-77,5)))

    (or for other settings: =IF(A1<37.5,A1*B1,IF(A1<40,0.5*B1*(3*A1-37.5),0.5*B1*(4*A1-77.5))))
    Never use Merged Cells in Excel

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1