+ Reply to Thread
Results 1 to 4 of 4

If function

  1. #1
    Registered User
    Join Date
    07-06-2010
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    98

    Smile If function

    Hi guys,

    I would like to know how I can use an If function to determine the comission of 0.5% between £15,000 and £35,000. This is not a problem for an amout between or below the boundaries but what if the money put in is bigger?

    For example, the amount put in is £60,000 there for the comission only applies between £15,000 and £35,000 which then is £100. but the fee of the other £25,000 between £35,000 and £60,000 does not apply.

    Thank you in adavnce

    Mengo85
    Last edited by Mengo85; 07-27-2010 at 11:20 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: complex if function

    If you assume sale amount is in A1 and commission in B1:

    =MAX(0,MIN(35000,N(A1))-15000)*0.5%

    or

    =(MEDIAN(N(A1),{15000,35000})-15000)*0.5%

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: complex if function

    1) Sales below £15,000 get no commission
    2) Sales above are .5% up to a max commission of £175

    3) If the sale is entered into A1, then the B1 formula would be:

    =IF(A1>=15000, MIN(A1 * 0.5%, 175), 0)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    07-06-2010
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    98

    Re: complex if function

    Excellent guys,

    thank you very much! SOLVED

+ 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