Problem with Index/Match using SMALL with duplicate values.

dragon6614

New Member
Joined
Apr 12, 2023
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Hello,
I am having trouble correcting this formula to generate the list of names properly.
I have a table called tbl_Delta and inside are many columns. For the purpose of this question, I am trying to return the data from the column [Player] based on the lowest 10 values in the column [Power].
The formula I am using is: =INDEX(Tbl_Delta[Player],MATCH(SMALL(Tbl_Delta[Power],ROWS($C$5:$C5)),Tbl_Delta[Power],0))

1681320861715.png


The problem is I am getting the "MATCH" on the first instance of the "0" and not getting the second players name.
The table is in a sperate worksheet than this list FYI.
I have tried researching this but having trouble finding the fix. The 3rd and 4th row should be different players.


Any help would be greatly appreciated.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi,

For an Array Formula, you need to use the three keys Control+Shift+Enter ... and not the standard Enter key ...
 
Upvote 0
James, thanks for the follow up, I tried this and I am still getting the same results as above.
I am pretty sure the problem has to do with the "MATCH" for the "0" in the example above. The match is simply finding the first instance and returning that.

Using the Control+Shift+Enter the formula turns to this but same results.
{=INDEX(Tbl_Delta[Player],MATCH(SMALL(Tbl_Delta[Power],ROWS($C$5:$C8)),Tbl_Delta[Power],0))}
In the table in their are 100 rows, 2 rows have "0" (zero) in the Power column but these are 2 different Players.
The match is looking for the "0" and returning the Player column value on the first match (Player1), this is happening for each row that is zero instead of returning (Player1) in the number 3 and then (Player2) in the number 4 spot from my screenshot above.
 
Upvote 0
Maybe something like this:
Note that in parts of the formula you will need to reference the actual cell(s) not table nomenclature for the formula to work.

Book2
ABCDEFG
1Player#PowerLowest 10Player#
26448,080-13484002
3152,238,568-46852022
4172,496,84801
5192,637,28804
6111,961,401110005
7162,485,1124480806
8182,536,90811762127
91014182528
1022(468,520)14483289
11122,089,972181946410
12101,819,464  
132(1,348,400)  
14511,000 
1591,448,328
1671,176,212
17142,180,392
18132,161,914
19202,646,460
2040
2181,418,252
Sheet2
Cell Formulas
RangeFormula
F2:F13F2=IF(ROWS($F$2:$F2)>10,"",SMALL(Table2[Power],ROWS($F$2:$F2)))
G2:G14G2=IF(F2="","",INDEX(Table2[Player'#],AGGREGATE(15,6,(ROW(Table2[Power])-ROW($D$2)+1)/(Table2[Power]=SMALL(Table2[Power],ROWS($F$2:$F2))),COUNTIF($F$2:F2,F2))))
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,716
Members
448,985
Latest member
chocbudda

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