Excel Help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to count the number of values (in a range) that are between two
values (X>=Y>=Z). The trick is that the X and Z values change when the
values in the range change. I am trying to get the number of actual weights
that are between +10% and -10% of the Mean.

Thanks
 
one way:

=COUNTIF(A:A,">=" & AVERAGE(A:A)*0.9) - COUNTIF(A:A,">" &
AVERAGE(A:A)*1.1)

Alternatively:

=SUMPRODUCT(--(A1:A1000>=AVERAGE(A1:A1000)*0.9),
--(A1:A1000<=AVERAGE(A1:A1000)*1.1))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top