+ Reply to Thread
Results 1 to 7 of 7

Get a result based on several different conditions

  1. #1
    Registered User
    Join Date
    05-20-2009
    Location
    Darlington, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Get a result based on several different conditions

    Hi all,

    New to the forum and in need of a bit of help. Friend of mine is in here regularly looking for assistance and tells me this is the best excel forum around. Thought I would put it to the test with a problem that is doing my head in.

    The following is a table which shows a salesmans sales. He or she has sold to 8 customers.

    What I need to do is show in the commission column how much they should get paid for the additional products based on this criteria.

    1. If the penetration is equal to or over 41%, and he has sold the additional product for max profit of 250 then he should get £40

    2. If the penetration is less than 41%, and he has sold the additional product for max profit of 250 then he should get £25

    3. If he hasnt sold the product for full amount then he gets 10% of the profit, regardless of the penetration





    CUSTOMER...........UNIT...........ADDITIONAL PROFIT........COMMISSION

    JOHN..................... 1 ....................
    MARY.................... 1 .....................250
    BILLY.................... 1 .................... 250
    BOB...................... 1 .....................150
    WILL..................... 1 .....................200
    MANDY.................. 1
    JAMES................... 1
    GRAHAM................. 1

    TOTAL.................. 8....................... 4


    ADDITIONAL PRODUCTS PENETRATION 50.00%


    Hope that makes sense. I have tried all sorts of formula and just cant get it quite right, please someone put me out of my misery

    Thanks in anticipation

    Quizzle
    Last edited by QUIZZLE; 05-20-2009 at 11:35 AM. Reason: Change of title

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula assistance

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Get a result based on several different conditions

    Thanks for taking the time to read and comply with the rule .

    See attached.

    Formula used in D3:

    =IF(C3>=250,LOOKUP($B$15,{0,0.41},{25,40}),C3*10%)

    copied down..

    where B15 contains penetration percentage.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-20-2009
    Location
    Darlington, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Get a result based on several different conditions

    HI

    No problem, didnt quite know what to put in the title.

    That works a treat - my friend was right, rapid response

    Wonder if i could impose on you to explain why that works, I can kind of follow it but the lookup bit is throwing me

    Its great to get the formula but if I knew how you got to that then I might be able to understand better and you never know, maybe I could help someone in the future. Well I can hope cant I

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Get a result based on several different conditions

    Have a look at LOOKUP in Excel Help files... it will help explain the basic use of the formula.

    In my example, I physically entered the arrays (which have to be enclosed in the curly brackets) instead of using ranges as per the Excel help file samples.

    The Lookup() function looks up a value in a range of sorted (ascending) values and finds a match when it finds the largest value that is smaller than or equal to the lookup value.. it returns the corresponding item in the results array.

    So for your example if looks for the value in B15 within the array {0,.41}. If the value in B15 is less than 0.41, then it will return 25 because 0 is the largest value that is less than or equal to the value in B15. If B15 is 0.41 or higher it will return 40, since .41 will be the largest value in the lookup array that is less than or equal to the value in B15.

    The IF() parts simply tests the conditions... so it checks first if C3>250.. if it is, it performs the LOOKUP(), otherwise it simply multiplies the corresponding profit in column C by 10%

    Hope that helps.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Get a result based on several different conditions

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  7. #7
    Registered User
    Join Date
    05-20-2009
    Location
    Darlington, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Get a result based on several different conditions

    Thanks for your help

    Much appreciated

+ 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