LARGE and INDEX/MATCH help please

clatron

New Member
Joined
Nov 14, 2014
Messages
3
I have a table like the below, trying to find top 5 attendances using LARGE then INDEX/MATCH

The issue I have is that in GameWeek1, two teams have the same attendance therefore the INDEX/MATCH brings the first one back twice.
For example, in G1:G5 I have the numbers 1 to 5.
In H1:H5 I have this formula ... =LARGE(IF(($B$2:$B$17="PL")*($C$2:$C$17=1),$D$2:$D$17),$G1)
In I1:I5 I have this formula ... =INDEX($A$2:$A$17,MATCH(1,(1=$C$2:$C$17)*("PL"=$B$2:$B$17)*($H1=$D$2:$D$17),0))

Results 4 and 5 both show as 48000 - which is correct - but the index /match brings back Man City twice when it should be Man City / Spurs.

Any help please? Thanks :)



ClubLeagueGameWeekAttendence
ArsenalPL152000
ChelseaPL155000
LeedsChamp131000
Man CityPL148000
Man UtdPL176000
SpursPL148000
VillaChamp130000
WolvesChamp126000
ArsenalPL254000
ChelseaPL253000
LeedsChamp229000
Man CityPL245000
Man UtdPL272000
SpursPL246000
VillaChamp228000
WolvesChamp228000

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

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
You could use this if you really need a formula. In I1:

=INDEX($A$2:$A$17,SMALL(IF($D$2:$D$17=H1,ROW($A$2:$A$17)-ROW($A$2)+1),COUNTIF($H$1:H1,H1)))

Enter CTRL_SHIFT_ENTER. Id use a pivot for this kind of job though. Your data is perfect for it.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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