+ Reply to Thread
Results 1 to 6 of 6

Using IF or alternative function

  1. #1
    Registered User
    Join Date
    07-28-2011
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Using IF or alternative function

    Hi there, I need help using an IF statement. Or, if there is a better formula to use, I'm all ears. Here is what I'm trying to do. We've hired a freelancer who has offered us a bulk rate discount. For any given month, if we give him 25 or less hours of work, his rate is $50 per hour. Anything 26 hours or more would be calculated at a rate of $40 per hour. I'd like to track his hours throughout the month and calculate when it hits 26 hours or more. Using the IF statement seems the best here, but the second half of my formula seems messy. Here's where I'm at:

    A1: $50
    A2: $40

    A4: Hours
    B4: Rate
    C4: Amount

    A5: 5
    B5: =IF(SUM($A$5:A5)>25,A2,A1)
    C5: =A5*B5

    A6: 22
    B6: =(SUM($A$5:A6)>25,A2,A1)

    This is where I'm stuck. Both formulas are incomplete and don't calculate the two rates if indeed it is over 25 hours. The second formula doesn't factor in multiplying the hours at one rate plus the hours at a different rate. I know the calculations I need to do, but can't think of an easier way to do it. I need to be able to calculate the number of hours that are 25 hours and under at $50 and anything over that at $40 where it resets at the end of each month. Thoughts?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Using IF or alternative function

    Does this works for you?

    =(SUM(A5:A6)*A1)-(SUM(A5:A6)-25)*(A1-A2)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    09-22-2009
    Location
    Cornwall, England
    MS-Off Ver
    Excel 2010 (Work) O365Home (Home)
    Posts
    94

    Re: Using IF or alternative function

    how about this?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-28-2011
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Using IF or alternative function

    Thanks. It's close. But, technically, 20 of those hours in line 2 should be multiplied by 50 and the remaining 2 hours multiplied by 40. Then, any subsequent hours thereafter will be multiplied at $40.

  5. #5
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Using IF or alternative function

    Please click the * icon below if I have helped.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Using IF or alternative function

    ... I need to be able to calculate the number of hours that are 25 hours and under at $50 and anything over that at $40
    Post#1>>>Suggested formula does this.

+ 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