Average Top 10 Values Only

ExcelRaceRatings

New Member
Joined
Jan 9, 2016
Messages
25
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I have a large spreadsheet containing race times from Horse Racing tracks all around Australia. I want to able to average the top 10 times sorted by: track, distance and track condition.

Using "Flem 1200 4" as an example (i use the concatenate formula to join multiple data into one column). There are 62 entries with Flem 1200 4 in A1:A62 and the race times in B1:B62. As stated above i want to be able to Average the top 10 values which fall under "Flem 1200 4" only. I need to do this for 11,000 different types of scenarios hence why i would love a formula to be able to pick the top 10 from each scenario with ease?

Would greatly appreciate any assistance!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Would you care to post a scaled-down sample for a top 3 times?

Hi there,

Below is a small smaple of what i require. Remember there are 62 values all up in Column A under "Flem 1200 4". I am after simply an AVG of the top 10 only is possible?


TRACKSTIMESAVG TOP 10AVG TIME T10
FLEM 1200 4

<tbody>
</tbody>
69.01
FLEM 1200 4

<tbody>
</tbody>
FORMULA REQUIRED
FLEM 1200 4

<tbody>
</tbody>
69.08FLEM 1200 5
FLEM 1200 4

<tbody>
</tbody>
69.17FLEM 1200 6
FLEM 1200 4

<tbody>
</tbody>
69.26FLEM 1200 7
FLEM 1200 4

<tbody>
</tbody>
69.32FLEM 1200 8
FLEM 1200 4

<tbody>
</tbody>
69.38FLEM 1200 9
FLEM 1200 4

<tbody>
</tbody>
69.52FLEM 1200 10
FLEM 1200 4

<tbody>
</tbody>
69.55FLEM 1400 2
FLEM 1200 4

<tbody>
</tbody>
69.59FLEM 1400 3
FLEM 1200 4

<tbody>
</tbody>
69.69FLEM 1400 4
FLEM 1200 4

<tbody>
</tbody>
69.71FLEM 1400 5

<tbody>
</tbody>

Thank you
 
Upvote 0
Hi RaceRatings,

I'm not sure if I get your question correctly, but you can use the LARGE function.


Excel 2012
ABCDE
1IDTimeTop 10
2Flem 1200 40.5432180.981621#1
3Flem 1200 40.1933370.971097#2
4Flem 1200 40.9405970.956435#3
5Flem 1200 40.90230.940597#4
6Flem 1200 40.5097830.916657#5
7Flem 1200 40.2035450.916005#6
8Flem 1200 40.3827820.9023#7
9Flem 1200 40.1604250.883813#8
10Flem 1200 40.2703490.852557#9
11Flem 1200 40.8318370.831837#10
12Flem 1200 40.4697370.915292AVERAGE
13Flem 1200 40.504709
14Flem 1200 40.08148
15Flem 1200 40.65257
16Flem 1200 40.614582
17Flem 1200 40.046653
18Flem 1200 40.956435
19Flem 1200 40.336515
20Flem 1200 40.347901
21Flem 1200 40.852557
22Flem 1200 40.244155
Sheet1
Cell Formulas
RangeFormula
D2=LARGE(Table1[Time],1)
D3=LARGE(Table1[Time],2)
D4=LARGE(Table1[Time],3)
D5=LARGE(Table1[Time],4)
D6=LARGE(Table1[Time],5)
D7=LARGE(Table1[Time],6)
D8=LARGE(Table1[Time],7)
D9=LARGE(Table1[Time],8)
D10=LARGE(Table1[Time],9)
D11=LARGE(Table1[Time],10)
D12=AVERAGE(D2:D11)
 
Upvote 0
Row\Col
A​
B​
C​
D​
E​
1​
TRACKS TIMES AVG TOP 10 AVG TIME T10
2​
FLEM 1200 4 69.01 FLEM 1200 4 69.427
3​
FLEM 1200 4 69.08 FLEM 1200 5
4​
FLEM 1200 4 69.17 FLEM 1200 6
5​
FLEM 1200 4 69.26 FLEM 1200 7
6​
FLEM 1200 4 69.32 FLEM 1200 8
7​
FLEM 1200 4 69.38 FLEM 1200 9
8​
FLEM 1200 4 69.52 FLEM 1200 10
9​
FLEM 1200 4 69.55 FLEM 1400 2
10​
FLEM 1200 4 69.59 FLEM 1400 3
11​
FLEM 1200 4 69.69 FLEM 1400 4
12​
FLEM 1200 4 69.71 FLEM 1400 5

In E2 control+shift+enter, not just enter:
Rich (BB code):
=AVERAGE(LARGE(IF($A$2:$A$12=$D2,$B$2:$B$12),
     ROW(INDIRECT("1:"&MIN(10,COUNTIFS($A$2:$A$12,$D2))))))
 
Upvote 0

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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