Excel: Commission rates using multiple criteria in separate cells - PLEASE HELP

snyderjames724

New Member
Joined
Nov 22, 2016
Messages
2
Hey everyone,

I am trying to pull commission rates using a commission reference sheet which contains multiple criteria on the x axis and 1 criteria on the y axis. I have tried indexes, match functions, arrays, etc and cannot get it to pull a commission rate when both criteria from the x axis are matched with a salesperson on the y axis. For example, when James sells an SUV in Utah, I want a formula that will pull 0.0325 from the Commission Rate tab (example below).

See below:

Sales Data example:

Fname
Type
State
Amount
Commission Rate 1
James
SUV
UT
38,968.00
Chris
Standard
PA
24,305.00
Matt
Standard
PA
22,060.00
Peter
Compact
UT
13,311.00
Fred
Compact
PA
17,097.00

<tbody>
</tbody>


Commission Rates:

NH
NH
NH
NH
UT
UT
UT
UT
PA
PA
PA
PA
Compact
Standard
SUV
Luxury
Compact
Standard
SUV
Luxury
Compact
Standard
SUV
Luxury
James
0.0150
0.0250
0.0350
0.0525
0.0125
0.0225
0.0325
0.0500
0.0160
0.0260
0.0360
0.0535
Chris
0.0150
0.0250
0.0350
0.0525
0.0125
0.0225
0.0325
0.0500
0.0160
0.0260
0.0360
0.0535
Matt
0.0150
0.0250
0.0350
0.0525
0.0125
0.0225
0.0325
0.0500
0.0160
0.0260
0.0360
0.0535
Pete
0.0150
0.0250
0.0350
0.0525
0.0125
0.0225
0.0325
0.0500
0.0160
0.0260
0.0360
0.0535
Fred
0.0075
0.0125
0.0175
0.0263
0.0063
0.0113
0.0163
0.0250
0.0080
0.0130
0.0180
0.0268
Jillian
0.0075
0.0125
0.0175
0.0263
0.0063
0.0113
0.0163
0.0250
0.0080
0.0130
0.0180
0.0268
Katie
0.0075
0.0125
0.0175
0.0263
0.0063
0.0113
0.0163
0.0250
0.0080
0.0130
0.0180
0.0268
Teresa
0.0075
0.0125
0.0175
0.0263
0.0063
0.0113
0.0163
0.0250
0.0080
0.0130
0.0180
0.0268

<tbody>
</tbody>

Please let me know if any of you have an idea for this! I would greatly appreciate it. Thank you.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi snyderjames

With thanks to Chandoo try this approach.

Firstly, convert the two rows of State and Car type data into one, by use of the CONCATENATE or & function, so you have something like:

'NH_Compact', 'NH_Standard', etc. It doesn't matter what format you take, as long as you can replicate it.

In other words, you are taking the two rows and turning them into one row. Once you've done this, you now have a more typical table. My table now is:

Range B1:M1 - Header (containing 'NH_Compact', 'NH_Standard' etc)
Range A2:A9 - Names
Range B2:M9 - Commission rates

Next:

Name the ranges, being:

Header: 'State_Car'
Names: 'Names'
Commission rates: 'CommissionRates'

Then, using your Sales Data table, use the following formula to pull in the commission rate:

Code:
=SUMPRODUCT((Names=$O12)*(State_Car=$Q12&"_"&$P12)*CommissionRates)

Where $O12 is 'James', $Q12 is 'UT', and $P12 is 'SUV'

Result: 0.0325

Enjoy !

Cheers

pvr928

PS make sure your names are the same: you have 'Peter' as 'Pete' in your commission table. If the text does not match, nothing will be returned.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,323
Members
449,077
Latest member
jmsotelo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top