countif function

  • Thread starter Thread starter Debbie
  • Start date Start date
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.
 
Max, are you sure?

--
regards/pozdrav!
Berislav

******************************************************************
ROT13 - email address (e-mail address removed)
 
=ABS(COUNTIF(A1:A8,">30")-COUNTIF(A1:A8,"<=50"))

You mean the above suggestion ?
Yes, it does return the correct result: 3
So .. ?
 
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)
 
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?
 
=COUNTIF(A1:A8;">30")-COUNTIF(A1:A8;">50")

--
regards/pozdrav!
Berislav

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