How to count the number of values that fall within a range

S

Steve Matlock

8 A B C D E F G H
9 This seems to work This seems to double count those that are
between and single count the rest
10 values
<10 and >90 >30 and < 70
11 29.65 5.00000 28.00000
12 62.71
13 1.35 Equation in C11
14 97.13 =COUNTIF(A11:A30,"<10")+COUNTIF(A11:A30,">90")'
15 31.46
16 80.75 Equation in D11
17 8.62 =COUNTIF(A11:A30,">30")+COUNTIF(A11:A30,"<70")'
18 54.96
19 53.23 The question is, is there a similar function to countif
that will allow more than one criteria
20 7.12
21 36.81 Is there a better way to do this?
22 77.30
23 18.92
24 6.08
25 19.81
26 38.78
27 87.99
28 77.84
29 56.24
30 53.28
 
M

Microsoft

Hi Steve,
I am not sure if I understood you right, but maybe try something like this:

{=SUM(((A11:A300)>100)*((A11:A30)<200))} (array-entered)

you can use as many criteria as you wish ("*" means "AND" in this case) if
you need "OR" use "+" instead of "*"

regards,

Piotr Glenszczyk
 
P

Piotr Glenszczyk

I am sorry, I forgot to set my name in properties in Outlook.
I am not from Microsoft.

Piotr Glenszczyk
 

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

Similar Threads


Top