I am trying to find the percentile of a value within a range of cells that meet a certain condition.
example1.PNG
Using the image above as an example, I'd like to calculate the percentile of certain value (doesn't matter which value for this) for the range of cells where column B has the value 1.
Calculating percentile is not an issue (use the PERCENTRANK function) but turning that list of 16 numbers into an array of just the 11 with the value of 1 in column B is what I'm finding difficult.
I believe some combination of the MATCH and INDEX function could do it, but I have not found a way that works. I realise that there is possibly an easy(/easier) solution if VBA or SQL is used, but I would prefer (if possible) a solution that just uses Excel functions.
Thank you!
Bookmarks