find out the average number

Status
Not open for further replies.

randomwalker

Board Regular
Joined
Feb 22, 2007
Messages
169
Hi,

cell c1 = aaa, c2=aa, c3=aaa, c4=a, c5=aa, ..., c18=aa.
d1 = 20, d2=83, d3=60, ...

Now I want to find out the mean of some numbers in column D. Those numbers are higher than the 10% percentile and lower than the 90% percentile, meanwhile the level in the corresponding cells in column c is "aaa". my formula is {=AVERAGE(IF($C$1:$C$18="aaa",IF($D$1:$D$18>PERCENTILE($D$1:$D$18,10%),IF($D$1:$D$18<PERCENTILE($D$1:$D$18,90%),$D$1:$D$18))))}

but it doesn't work correctly. the formula above simply gives the average of those numbers in column d with "aaa" in column c, it overlooks the 10% percentile and 90% percentile function.

where am I wrong?

thanks for help!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
is this correct


{=AVERAGE(IF($C$1:$C$18="aaa",IF($D$1:$D$18>PERCENTILE($D$1:$D$18,10%),IF($D$1:$D$18<PERCENTILE($D$1:$D$18,90%),$D$1:$D$18))))}
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,348
Messages
6,124,425
Members
449,157
Latest member
mytux

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