+ Reply to Thread
Results 1 to 5 of 5

Double lookup in multi column table

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Double lookup in multi column table

    I have table of Sales reps and corresponding bonus structure for each person. Each rep is payed a bonus based on amount of sales. The bonus for reach Tier 1 is $5,000; the bonus for reaching Tier 2 is $50,000. The issue is each rep must achieve a different level of total sales to reach tier 1 and tier 2. I have attached a sample spreadsheet with actual sales for each rep and expected bonus for each. Thanks in advance for any comments.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Double lookup in multi column table

    hi maacmaac. it seems like Tier1 is 10,000 instead of 5,000? or is there something i dont understand? if you need to return the tier, try this in H2:
    =IF(G2>=C2,2,IF(G2>=B2,1,0))

    then in I2:
    =CHOOSE(H2+1,0,10000,50000)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Double lookup in multi column table

    Hello,

    You can use this for column I
    Please Login or Register  to view this content.
    and for column H, I suggest using benishiryo's method, that's a really good one
    Please Login or Register  to view this content.
    And here's the sample.
    Attached Files Attached Files
    (copy pasta from Ford)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools

    Regards,
    Lem

  4. #4
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Re: Double lookup in multi column table

    That works fine with the Sumproduct. Is there a way to eliminate having to use column H ("Tier Reached") and incorporate into column I? Column H was only there for illustrative purposes and not part of actual spreadsheet model? Attached is updated example. Thanks for all comments.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Double lookup in multi column table

    Well, you can put straight the formula in column H into the CHOOSE, like
    Please Login or Register  to view this content.
    Here is your ver 03 with the formula.
    Attached Files Attached Files

+ 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