Adjusting a percentile results when data is filtered

jsparrow22

New Member
Joined
Feb 3, 2023
Messages
4
Office Version
  1. 2013
Platform
  1. Windows
I am using the percentile.exc formula to display the 50th, 85th and 95th percentile.
This figure is calculated from a column containing days items take to complete. The days items take to complete contains data for multiple categories but when I filter the categories I continue to get the same percentile result.
What formula do I need to ensure the percentile is adjusted based on whichever category of item I am interested in.
I still want an overall view but being able to have the data per category would be beneficial.

Thanks in advance.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Let's say that A2:A10 contains your data, try the following formula that needs to be confirmed with CONTROL+SHIFT+ENTER...

Excel Formula:
=PERCENTILE.EXC(IF(SUBTOTAL(3,OFFSET(A2:A10,ROW(A2:A10)-ROW(A2),0,1))>0,A2:A10),0.5)

To also exclude from the calculation rows that are manually hidden, replace the number 3 with 103.

Hope this helps!
 
Upvote 0
Let's say that A2:A10 contains your data, try the following formula that needs to be confirmed with CONTROL+SHIFT+ENTER...

Excel Formula:
=PERCENTILE.EXC(IF(SUBTOTAL(3,OFFSET(A2:A10,ROW(A2:A10)-ROW(A2),0,1))>0,A2:A10),0.5)

To also exclude from the calculation rows that are manually hidden, replace the number 3 with 103.

Hope this helps!
I couldn't get the suggested formula to work but have since found a workaround.

=AGGREGATE(18,5,F6:F220,0.5)
 
Upvote 0

Forum statistics

Threads
1,215,972
Messages
6,128,027
Members
449,414
Latest member
sameri

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