Making a top 10 list with possible duplicate values

HawkeyeBC

New Member
Joined
Mar 29, 2023
Messages
10
Office Version
  1. 2021
Platform
  1. Windows
I have a spreadsheet which tracks the all time results of my fantasy baseball league. I have a table that displays the top 10 in all of the categories we track (Runs, RBI, HR, etc).

I was able to get the list to show the top 10 using the LARGE function then used Index(Match) to obtain the Name, Week, and Year. But in some cases there are duplicate values where 2 teams have the same score and I want to display those individually. Also, the incorrect name is showing up. For example, The person who scored 56 runs was not TJ, it was Bryja in week 11 of 2019. So my Index(Match) formula is grabbing the wrong person's name.

For example:

Most Runs in a Week
NameRunsWeekYear
1stTJ5612011
2ndDAHL54192011
3rdDAHL53212010
4thDAHL52222010
5thDAHL52222010

Dahl is repeated twice and there is another person who also scored 52 runs in Week but they aren't showing up.

Here is a sorted table of what the data SHOULD look like. I created a column for a "code" thinking I could use that somehow to display these values uniquely but I can't seem to figure it out.

PLAYERYEARWKLng WkRUNSCode
BRYJA201911N56BRYJA201911
BRYJA201715N54BRYJA201715
MEYERS201911N53MEYERS201911
MEYERS20207N52MEYERS20207
BRYJA202216N52BRYJA202216
DRISH201014N51DRISH201014
MEYERS20198N51MEYERS20198
WHITE20212N50WHITE20212
WHITE202317N50WHITE202317
NORG201918N49NORG201918

This is the formula used to obtain the Large value for the "Runs" column.
=LARGE(IF('All Games'!$W$2:$W$9662="N",'All Games'!$B$2:$B$9662,0),1)

Col B is the number of runs
Col W is a designation of a "long week" or a regular week. I only want to display the numbers for the regular weeks and exclude long weeks from the score.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Maybe try something like this:
In the example below cell B16 can be changed to show top 10 or top 5 etc.
Change ranges to match your data.

Book1
ABCDEF
1PLAYERYEARWKLng WkRUNSCode
2BRYJA201911N56BRYJA201911
3BRYJA201715N49BRYJA201715
4MEYERS201911N53MEYERS201911
5MEYERS20207N58MEYERS20207
6BRYJA202216N52BRYJA202216
7DRISH201014N51DRISH201014
8MEYERS20198N51MEYERS20198
9WHITE20212N35WHITE20212
10WHITE202317N50WHITE202317
11NORG201918N49NORG201918
12BRYJA202216N45BRYJA202216
13SamB202012N61SAMB20223
14
15
16Top:10
17PLAYERYEARWKLng WkRUNSCode
18SamB202012N61SAMB20223
19MEYERS20207N58MEYERS20207
20BRYJA201911N56BRYJA201911
21MEYERS201911N53MEYERS201911
22BRYJA202216N52BRYJA202216
23DRISH201014N51DRISH201014
24MEYERS20198N51MEYERS20198
25WHITE202317N50WHITE202317
26BRYJA201715N49BRYJA201715
27NORG201918N49NORG201918
Sheet1
Cell Formulas
RangeFormula
A18:F27A18=SORT(FILTER($A$2:$F$13,$E$2:$E$13>=LARGE($E$2:$E$13,$B$16)),5,-1)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,755
Messages
6,180,758
Members
452,996
Latest member
nelsonsix66

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