Index, match with large function (two step) with multiple criteria pulling wrong record

mclary

New Member
Joined
Oct 2, 2017
Messages
3
I have a spreadsheet that is supposed to find the top three players that meet two criteria (position (set in cell $K$4) and salary (set in cell $K$5) (less than or equal to a desired amount) that have the highest projected points.

My first formula seems to work. This finds the highest three average projections based on the two criteria set forth above. The formula is:

in cell L7: {=LARGE(IF(Price_List[Pos]=$K$4,IF(Price_List[Salary]<=$K$5,Price_List[Avg Projection])),I7)}

My next formula which is supposed to pull the corresponding player's name is not working. It pulls the first record in the list whose average projection matches the value that my first formula pulled). I need to make it find the player that matches the avg projection value determined in the first formula but also matches the position and salary criteria. I am using an index match as follows:

in cell J7: =INDEX(Price_List[Player],MATCH(L7,Price_List[Avg Projection],0))

I tried to paste the spreadsheet below but it is pretty ugly.

Can anyone help me figure out what the second formula should be?


PlayeroPosMatchupSalaryAvg Projection
QB1oQBN/A770021.47
QB20oQBN/A550017.77Salary Optimizer
QB30oQBN/A470016.10 PositionWR
RB3oRBN/A800019.93 Salary$7,000
RB4oRBN/A770019.77RankNameSalaryAvg Projection
RB35oRBN/A450010.701QB20$5,50017.8
RB36oRBN/A450011.802WR24$5,90016.1
RB37oRBN/A45005.333WR30$5,60015.9
RB66oRBN/A38002.80
RB67oRBN/A38006.37Projection Formula
WR20oWRN/A630015.53{=LARGE(IF(Price_List[Pos]=$K$4,IF(Price_List[Salary]<=$K$5,Price_List[Avg Projection])),I7)}
WR21oWRN/A620017.77
WR22oWRN/A610013.43Name Formula
WR23oWRN/A60003.50=INDEX(Price_List[Player],MATCH(L7,Price_List[Avg Projection],0))
WR24oWRN/A590016.13
WR29oWRN/A570013.83Salary Formula
WR30oWRN/A560015.90=INDEX(Price_List[Salary],MATCH(J7,Price_List[Player],0))
TE1oTEN/A680015.17
TE2oTEN/A600015.60
TE3oTEN/A540012.07
TE4oTEN/A500013.37
TE5oTEN/A46002.27
TE6oTEN/A450012.90
Def1oDN/A390011.07
Def2oDN/A380012.60
Def3oDN/A370010.93
Def4oDN/A36009.70
Def5oDN/A350010.17

<colgroup><col><col><col><col><col><col><col span="7"></colgroup><tbody>
</tbody>
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Maybe something like this.
These are array formulas and must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABCDEFGHIJKL
1PlayeroPosMatchupSalaryAvg Projection
2QB1oQBN/A770021.47
3QB20oQBN/A550017.77Salary Optimizer
4QB30oQBN/A470016.1PositionWR
5RB3oRBN/A800019.93Salary$7,000
6RB4oRBN/A770019.77RankNameSalaryAvg Projection
7RB35oRBN/A450010.71WR21620017.77
8RB36oRBN/A450011.82WR24590016.13
9RB37oRBN/A45005.333WR30560015.9
10RB66oRBN/A38002.8
11RB67oRBN/A38006.37
12WR20oWRN/A630015.53
13WR21oWRN/A620017.77
14WR22oWRN/A610013.43
15WR23oWRN/A60003.5
16WR24oWRN/A590016.13
17WR29oWRN/A570013.83
18WR30oWRN/A560015.9
19TE1oTEN/A680015.17
20TE2oTEN/A600015.6
21TE3oTEN/A540012.07
22TE4oTEN/A500013.37
23TE5oTEN/A46002.27
24TE6oTEN/A450012.9
25Def1oDN/A390011.07
26Def2oDN/A380012.6
27Def3oDN/A370010.93
28Def4oDN/A36009.7
29Def5oDN/A350010.17
Sheet
 
Upvote 0
Thanks, everything worked except the formula in K7 was missing the third "if" criteria for salary. I adjusted that and everything worked. Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,214,575
Messages
6,120,334
Members
448,956
Latest member
Adamsxl

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