Counting # of cells

  • Thread starter Thread starter Ronnie
  • Start date Start date
R

Ronnie

I need a formula to count the number of cells in a column that contain the
numbers between 120 and 129. Thanks for any input!
 
=COUNTIF(A1:A100, ">=120") - COUNTIF(A1:A100, "<=129")
or
=SUMPRODUCT(--(A1:A100>=120),--(A1:A100<=129))
best wishes
 
the column being 'A', it could be written this way:

=COUNTIF(A:A,"<130")-COUNTIF(A:A,"<120")
 
I think you mistyped on your COUNTIF
I believe it should be:
=COUNTIF(A1:A100, ">=120") - COUNTIF(A1:A100, ">129")
 
I am so close, but it's not working. I think it's the minus sign in the
formula. Any other suggestions.
 
I'm not sure what was wrong. I was unable to get the counts to come out
properly. I did get the "sumproduct" formula to work. I would like to know
why the other formula was not working, but it wasn't.
 

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