Commission structures with 3 variables, tried multiple formulas

HR Manager

New Member
Joined
Jul 13, 2018
Messages
3
I am trying to get commission values to generate based upon three criteria's:
[TABLE="width: 228"]
<colgroup><col><col><col span="2"></colgroup><tbody>[TR]
[TD]Employee[/TD]
[TD] LPH[/TD]
[TD] QA Score[/TD]
[TD] DH [/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]4.6[/TD]
[TD="align: right"]0.967[/TD]
[TD="align: right"]37.9[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]3.5[/TD]
[TD="align: right"]0.951[/TD]
[TD="align: right"]25.6[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]1.7[/TD]
[TD="align: right"]0.981[/TD]
[TD="align: right"]29.2[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD="align: right"]3.4[/TD]
[TD="align: right"]0.912[/TD]
[TD="align: right"]37.2[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]0.964[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD="align: right"]2.1[/TD]
[TD="align: right"]0.863[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD="align: right"]5.5[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]29.5[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 340"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

The commission structure is below:
[TABLE="width: 277"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD] LPH[/TD]
[TD] QA[/TD]
[TD] DH[/TD]
[TD] Commission[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]0.96[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]0.96[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]80[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="align: right"]0.97[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]120[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD="align: right"]0.97[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]160[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD="align: right"]0.97[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]200[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[TD="align: right"]0.98[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]240[/TD]
[/TR]
[TR]
[TD="align: right"]10[/TD]
[TD="align: right"]0.98[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]280[/TD]
[/TR]
[TR]
[TD="align: right"]11[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]320[/TD]
[/TR]
[TR]
[TD="align: right"]12[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]360[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]400[/TD]
[/TR]
</tbody>[/TABLE]

How the structure works that the employee must hit the minimum in three column in order to recieve the commission value
For example:
Employee A: would get 40
Employee B: would receive 0
Employee C: would receive 0

I have tried Index, match and vlookup, with if and I am not getting the results I need. Any help would be much appreciated.
 

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.
What's the expected result for employees D through G?
 
Upvote 0
What's the expected result for employees D through G?

D-Would also be 0
E-Would also be 0 because they didn't meet the minimum in DH
F-Would be 0
G-Would be 0 because didn't meet the minimum DH

For Example for a commission receiver would be:

LPH-13
QA-.97
DH-34

They would only receive the minimum $40 because they had the lowest DH score.

Another Example is:
LPH-10
QA-.97
DH-36

They would receive $200, because it is a lower DH than what is expected for 10 LPH.

Hope this helps in order for you to help me, thank for responding :)
 
Upvote 0
In the example below col A:D is the data from your post. Col E is the commission (copy the formula in E2 down). Cols G:J contain your "lookup" table. Each column in G:J is a named range whose name is the column header.
Excel Workbook
ABCDEFGHIJ
1EmployeeLPHQA ScoreDHCommLPHQADHCommission
2A4.60.96737.9400000
3B3.50.95125.6040.963440
4C1.70.98129.2050.963480
5D3.40.91237.2060.9734120
6E70.96415070.9736160
7F2.10.86320080.9736200
8G5.5129.5090.9836240
9100.9836280
1011136320
1112136360
1213136400
Sheet1
 
Upvote 0
In the example below col A:D is the data from your post. Col E is the commission (copy the formula in E2 down). Cols G:J contain your "lookup" table. Each column in G:J is a named range whose name is the column header.
Sheet1

ABCDEFGHIJ
EmployeeLPHQA ScoreDHComm LPHQADHCommission
A
B
C
D
E
F
G

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:69px;"><col style="width:30px;"><col style="width:63px;"><col style="width:35px;"><col style="width:64px;"><col style="width:64px;"><col style="width:30px;"><col style="width:35px;"><col style="width:25px;"><col style="width:83px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]

[TD="align: right"]4.6[/TD]
[TD="align: right"]0.967[/TD]
[TD="align: right"]37.9[/TD]
[TD="align: right"]40[/TD]

[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]

[TD="align: right"]3.5[/TD]
[TD="align: right"]0.951[/TD]
[TD="align: right"]25.6[/TD]
[TD="align: right"]0[/TD]

[TD="align: right"]4[/TD]
[TD="align: right"]0.96[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]40[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]

[TD="align: right"]1.7[/TD]
[TD="align: right"]0.981[/TD]
[TD="align: right"]29.2[/TD]
[TD="align: right"]0[/TD]

[TD="align: right"]5[/TD]
[TD="align: right"]0.96[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]80[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]

[TD="align: right"]3.4[/TD]
[TD="align: right"]0.912[/TD]
[TD="align: right"]37.2[/TD]
[TD="align: right"]0[/TD]

[TD="align: right"]6[/TD]
[TD="align: right"]0.97[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]120[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]6[/TD]

[TD="align: right"]7[/TD]
[TD="align: right"]0.964[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]0[/TD]

[TD="align: right"]7[/TD]
[TD="align: right"]0.97[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]160[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]7[/TD]

[TD="align: right"]2.1[/TD]
[TD="align: right"]0.863[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]0[/TD]

[TD="align: right"]8[/TD]
[TD="align: right"]0.97[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]200[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]8[/TD]

[TD="align: right"]5.5[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]29.5[/TD]
[TD="align: right"]0[/TD]

[TD="align: right"]9[/TD]
[TD="align: right"]0.98[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]240[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]9[/TD]

[TD="align: right"]10[/TD]
[TD="align: right"]0.98[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]280[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]10[/TD]

[TD="align: right"]11[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]320[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]11[/TD]

[TD="align: right"]12[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]360[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]12[/TD]

[TD="align: right"]13[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]400[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
E2=MIN(LOOKUP($B2,LPH,Commission),LOOKUP($C2,QA,Commission),LOOKUP($D2,DH,Commission))

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

It worked for most, but there were a few employees it didn't work for and I figured out why.
The report I pull the data from has it going out more decimals than one, 4.98701298701299, the number looks like this in the cell, even though it shows a 5 in the cell, so the formula is still reading it as 4.98 instead of a 5. Is there a way to fix that also? Thank you again!!!
 
Upvote 0
You are welcome.

The LOOKUP functions require that the lookup vectors (the 2nd argument in the function) are in ascending order. So, sort each of the LPH,QA and DH named ranges so they are in ascending order, otherwise you may get an erroneous result.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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