Average the top 80% of the total data

OtterBA

New Member
Joined
May 2, 2011
Messages
13
I have one column of data (A:A) in b1 I want to have an average of the value in the top 80% of all the data in (A:A). I can have a conditional format highlight the top 80% but I want a formula to sum and count all cells in the top 80%.
Total:15
Average:2
Total*.8 = 12

Example
.5
.5
1
5
5
.5
2
.5
So... 5,5,2 are the largest numbers =12 but the average is 4 I can do this by hand for this little data but I have huge rows of data are not in order. I'm thinking there needs to be an array formula to do this but not sure what it is.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
5,5,2 add up (12) to 80% of the total of 15. No formula was used I just know that those three are the numbers I want averaged because they are the largest numbers that toal 80% of 15.

So... average of the largest string that = 80% of total. or something like average(Large(A:A),sum(A:A)*.8,A:A) -
 
Upvote 0
Here is a formula that gets me close. but I need something more dynamic.
=SUM(LARGE(J3:J10,{1,2,3}))/COUNT(LARGE(J3:J10,{1,2,3}))
instead of {1,2,3} i need something more like sum(j3:j10)*.8
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,894
Members
452,948
Latest member
Dupuhini

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