Fina number of records between 2 percentile values

C

coo-too

How do i find the number of test scores between the 50th and 75th percentile?
Formula using now is
=countif(data cells in range, "<=" &value of 75th percentile) -countif(data
cells in range, ">" &value of 50th percentile) -number of records -1

Thanks in advance!
 
J

JE McGimpsey

One way:

=COUNTIF(rng,"<="&PERCENTILE(rng,0.75)) -
COUNTIF(rng,"<"&PERCENTILE(rng,0.5))

alternatively:

=SUMPRODUCT(--(rng<=PERCENTILE(rng,0.75)),
--(rng>=PERCENTILE(rng,0.5)))
 
Top