Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 925

How to calculate percentile on array with conditions and value errors with Excel?

$
0
0

I have an array comprised of both numbers and value errors, and I want to calculate a percentile value from numbers (excluding the errors) in the set where certain conditions are met in another array of the same length.

As a first step, this formula works to reduce the applicable set to values that are numbers:

=PERCENTILE(IF(ISNUMBER(D13:D3637),D13:D3637),0.50)

So I expected to be able to add conditions with an AND function like this:

=PERCENTILE(IF(AND(C13:C3637<N12,ISNUMBER(D13:D3637)),D13:D3637),0.50)

But the AND function does not seem to work here (it seems to apply to the whole arrays, rather than on an element-by-element basis).


Viewing all articles
Browse latest Browse all 925

Trending Articles