countif function

D

Debbie

Hi, I need help with a formula to count a range of numbers
within a column. For example:
A
16
21
18
21
32
44
50
65
I need to count how many are >30 and <=50
Results=3
Thanks.
 
B

b&s

Max, are you sure?

--
regards/pozdrav!
Berislav

******************************************************************
ROT13 - email address (e-mail address removed)
 
M

Max

=ABS(COUNTIF(A1:A8,">30")-COUNTIF(A1:A8,"<=50"))

You mean the above suggestion ?
Yes, it does return the correct result: 3
So .. ?
 
B

b&s

Hi Max

If a range of numbers is:

33
21
18
21
32
44
50
65

formula doesn't return the correct result!
So..?

--
regards/pozdrav!
Berislav

*****************************************************************
ROT13 - email address (e-mail address removed)
 
M

Max

Hi, you're right !
The formula should be dismissed ..
Better stick to using SUMPRODUCT

Any idea how to get it bulletproof via the COUNTIFs route?
 
B

b&s

=COUNTIF(A1:A8;">30")-COUNTIF(A1:A8;">50")

--
regards/pozdrav!
Berislav

*****************************************************************
ROT13 - email address (e-mail address removed)
 

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

Top