+ Reply to Thread
Results 1 to 4 of 4

Reworking IF formula to make anything greater then 8 a flat rate + hourly after 8

Hybrid View

  1. #1
    Registered User
    Join Date
    07-27-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    9

    Reworking IF formula to make anything greater then 8 a flat rate + hourly after 8

    Here is the formula i have currently.

    =IF(F2>=8,CHOOSE(A2,185,205,275),IF(F2<3.5,CHOOSE(A2,28,32,45)*F2,CHOOSE(A2,95,115,165)+CHOOSE(A2,28,32,45)*(MAX(F2-4,0))))

    However, when F2 is greater then 8 then the flat rate (185,205,or 275) stays. I need to make it so that if anything >8 is in F2 then its (185,205,275) + an hourly charge for each number over 8. The hourly charges would be (28,32,45) depending on what A2 is (1,2,or 3).

    I dont know if this makes sense or not.

    Please help me!

    Regards,

    Braden

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Reworking IF formula to make anything greater then 8 a flat rate + hourly after 8

    How about..

    =IF(F2>=8,CHOOSE(A2,185,205,275)+CHOOSE(A2,28,32,45)*(F2-8),IF(F2<3.5,CHOOSE(A2,28,32,45)*F2,CHOOSE(A2,95,115,165)+CHOOSE(A2,28 ,32,45)*(MAX(F2-4,0))))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    07-27-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Reworking IF formula to make anything greater then 8 a flat rate + hourly after 8

    Quote Originally Posted by Ace_XL View Post
    How about..

    =IF(F2>=8,CHOOSE(A2,185,205,275)+CHOOSE(A2,28,32,45)*(F2-8),IF(F2<3.5,CHOOSE(A2,28,32,45)*F2,CHOOSE(A2,95,115,165)+CHOOSE(A2,28 ,32,45)*(MAX(F2-4,0))))
    Thank you, i was trying to work out something like this but just didnt know where to put the extra *(F2-8). It looks like its working! Thanks!

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Reworking IF formula to make anything greater then 8 a flat rate + hourly after 8

    @ bhandley

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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