• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Lookup based on 3 variables, one that has a range

DPR

New Member
- Our business utilizes multiple independent sales agents to sell our products.
- We pay agents a commission based on the selling price.
- The commission structure is unique for each agent.
- To remove the inefficiency of staff maually looking up commission rates based on the selling price, I would like the commission rate to be populated by looking up the rate based on the Agent, Product and Selling Price as defined in a commission table.
- I have unsuccessfully tried various combinations of VLOOKUP, CHOOSE, INDEX and MATCH functions to accomplish this.
- The challenge is that the commission is based on Selling Price ranges in the commission table and not an exact match on the three variables (Agent, Product, Selling Price).
- The uploaded file contains an example.

Any guidance would be greatly appreciated.

DPR
 

Attachments

- Our business utilizes multiple independent sales agents to sell our products.
- We pay agents a commission based on the selling price.
- The commission structure is unique for each agent.
- To remove the inefficiency of staff maually looking up commission rates based on the selling price, I would like the commission rate to be populated by looking up the rate based on the Agent, Product and Selling Price as defined in a commission table.
- I have unsuccessfully tried various combinations of VLOOKUP, CHOOSE, INDEX and MATCH functions to accomplish this.
- The challenge is that the commission is based on Selling Price ranges in the commission table and not an exact match on the three variables (Agent, Product, Selling Price).
- The uploaded file contains an example.

Any guidance would be greatly appreciated.

DPR
Something like this?
=SUMPRODUCT(($A$18:$A$41=A47)*($B$18:$B$41=B47)*($C$18:$C$41<=C47)*($D$18:$D$41>=C47),$E$18:$E$41)
Chihiro - Brilliant! Works perfectly. And using the formula highlighted that my example actually had a few errors in the commission amounts I hardcoded. Thank you
 
Back
Top