Hello
I'm struggling to write the correct formula to get the 90th percentile of a dynamic range. I don't want to do it in VBA as it seems to be possible with an Excel formula.
I've found this post but I don't manage to amend the formula properly: http://www.mrexcel.com/forum/excel-questions/712238-how-get-percentile-value-over-dynamic-range.html
Below is a sample of my data set (sorted on column A). I would to have the 90th percentile of B2:B6 (so for 20400) and the 90th percentile of B7:B10 (for 23500). But the formula should dynamically take the correct range, as longs as value in column A matches '20400', '23500', ...
[TABLE="width: 250"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD][/TD]
[TD]90th percentile[/TD]
[/TR]
[TR]
[TD]20400[/TD]
[TD]5,756[/TD]
[TD]20400[/TD]
[TD][/TD] [/TR] [TR] [TD]20400[/TD] [TD]15,326[/TD] [TD]23500[/TD] [TD][formula][/TD] [/TR] [TR] [TD]20400[/TD] [TD]524,365[/TD] [TD][/TD] [TD][/TD] [/TR] [TR] [TD]20400[/TD] [TD]2,750,365[/TD] [TD][/TD] [TD][/TD] [/TR] [TR] [TD]20400[/TD] [TD]956,324[/TD] [TD][/TD] [TD][/TD] [/TR] [TR] [TD]23500[/TD] [TD]75,653[/TD] [TD][/TD] [TD][/TD] [/TR] [TR] [TD]23500[/TD] [TD]654,365[/TD] [TD][/TD] [TD][/TD] [/TR] [TR] [TD]23500[/TD] [TD]15,236[/TD] [TD][/TD] [TD][/TD] [/TR] [TR] [TD]23500[/TD] [TD]236,543[/TD] [TD][/TD] [TD][/TD] [/TR] </tbody>[/TABLE] Many thanks for your help!
I'm struggling to write the correct formula to get the 90th percentile of a dynamic range. I don't want to do it in VBA as it seems to be possible with an Excel formula.
I've found this post but I don't manage to amend the formula properly: http://www.mrexcel.com/forum/excel-questions/712238-how-get-percentile-value-over-dynamic-range.html
Below is a sample of my data set (sorted on column A). I would to have the 90th percentile of B2:B6 (so for 20400) and the 90th percentile of B7:B10 (for 23500). But the formula should dynamically take the correct range, as longs as value in column A matches '20400', '23500', ...
[TABLE="width: 250"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD][/TD]
[TD]90th percentile[/TD]
[/TR]
[TR]
[TD]20400[/TD]
[TD]5,756[/TD]
[TD]20400[/TD]
[TD][/TD] [/TR] [TR] [TD]20400[/TD] [TD]15,326[/TD] [TD]23500[/TD] [TD][formula][/TD] [/TR] [TR] [TD]20400[/TD] [TD]524,365[/TD] [TD][/TD] [TD][/TD] [/TR] [TR] [TD]20400[/TD] [TD]2,750,365[/TD] [TD][/TD] [TD][/TD] [/TR] [TR] [TD]20400[/TD] [TD]956,324[/TD] [TD][/TD] [TD][/TD] [/TR] [TR] [TD]23500[/TD] [TD]75,653[/TD] [TD][/TD] [TD][/TD] [/TR] [TR] [TD]23500[/TD] [TD]654,365[/TD] [TD][/TD] [TD][/TD] [/TR] [TR] [TD]23500[/TD] [TD]15,236[/TD] [TD][/TD] [TD][/TD] [/TR] [TR] [TD]23500[/TD] [TD]236,543[/TD] [TD][/TD] [TD][/TD] [/TR] </tbody>[/TABLE] Many thanks for your help!