Countif function

  • Thread starter Thread starter Malyka
  • Start date Start date
M

Malyka

Dear Sir,

I like to count a range of column, but I get only field
that <3 and >7. What is wrong in my formular?

Example:
Countif(D2:d450,"<3 and >9")????

Thanks,
Malyka
 
Hi!

Try one of these:

=COUNTIF(D2:D450,"<3")+COUNTIF(D2:D450,">9")

=SUMPRODUCT(--(D2:D450<3)+(D2:D450>9))

Are you sure you have the criteria correct?

<3 = less than 3
 
The countif function can take only one condition. If you really mean
less than 3 OR greater than 7 (since a number can't be both), try

=COUNTIF(D2:D450,"<3") + COUNTIF(D2:D450,">7")

If instead you meant numbers greater than 3 and less than 7, try

=COUNTIF(D2:D450,">3") - COUNTIF(D2:D450,">=7")
 
note: there's no need to use the double unary minus if you're going to
use the + operator.
 
try this and see awhether you get what you want

=COUNTIF(D2:D450,">3")-COUNTIF(D2:D450,">=7")

the sign between the two countif is minus sign
what it does it finds out number >3 and subtract from this number which is
more than or equal to 7

courtesy: Harlan Grove
===========================================
 
Not being very good with formulas, what's the point of the -- in the formaula
mentioned??
 
If you're really looking to do what you posted:

<"Countif(D2:d450,"<3 and >9")????">

Count all values *less* then 3 AND *greater* then 9, you could try this
option also:

=SUM(COUNTIF(D2:D450,{"<3",">9"}))
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


Dear Sir,

I like to count a range of column, but I get only field
that <3 and >7. What is wrong in my formular?

Example:
Countif(D2:d450,"<3 and >9")????

Thanks,
Malyka
 

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