Average of Top 4 Ranked

paulfitz320

Board Regular
Joined
Jan 6, 2007
Messages
122
Office Version
  1. 365
Platform
  1. Windows
Hi, I have 3 columns... EVENT-SCORE-AVG of Top 4

I need a formula for COL C that will put the average of the TOP 4 ranked (COL B) for each EVENT in COL A

Thanks

Event Score Avg Of Top 4
1 131 129.00
1 129 129.00
1 129 129.00
1 127 129.00
1 126 129.00
1 124 129.00
1 124 129.00
1 123 129.00
1 0 129.00
2 116 101.50
2 100 101.50
2 98 101.50
2 92 101.50
2 91 101.50
2 81 101.50
2 78 101.50
2 0 101.50
2 0 101.50
3 107 53.00
3 105 53.00
3 0 53.00
3 0 53.00
3 0 53.00
3 0 53.00
4 104 79.25
4 80 79.25
4 78 79.25
4 55 79.25
4 0 79.25
4 0 79.25
4 0 79.25
5 136 125.00
5 128 125.00
5 124 125.00
5 112 125.00
5 0 125.00
5 0 125.00
5 0 125.00
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
A couple of options:

ABCD
1EventScoreAvg of Top 4
21131129129
31129129
41129129
51127129
61126129
71124129
81124129
91123129
1010129
112116101.5101.5
122100101.5
13298101.5
14292101.5
15291101.5
16281101.5
17278101.5
1820101.5
1920101.5
2031075353
21310553
223053
233053
243053
253053
26410479.2579.25
2748079.25
2847879.25
2945579.25
304079.25
314079.25
324079.25
335136125125
345128125
355124125
365112125
3750125
3850125
3950125

<tbody>
</tbody>
Sheet4

Worksheet Formulas
CellFormula
C2=AVERAGE(INDEX($B$2:$B$100,MATCH(A2,$A$2:$A$100,0)):INDEX($B$2:$B$100,MATCH(A2,$A$2:$A$100,0)+3))
D2=IF(A2<>A1,AVERAGE(B2:B5),"")

<tbody>
</tbody>

<tbody>
</tbody>

Both assume that the table is sorted as shown, with events grouped, and scores high to low.


Edit: If you don't want the gaps, the second formula can be:

=IF(A2<>A1,AVERAGE(B2:B5),C1)


And if they are not sorted:

=AVERAGE(LARGE(IF(A2=$A$2:$A$100,$B$2:$B$100),{1,2,3,4}))
with Control+Shift+Enter.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,411
Messages
6,119,360
Members
448,888
Latest member
Arle8907

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