View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
John C[_2_] John C[_2_] is offline
external usenet poster
 
Posts: 1,358
Default Counting # of cells

I think you mistyped on your COUNTIF
I believe it should be:
=COUNTIF(A1:A100, "=120") - COUNTIF(A1:A100, "129")
--
** John C **


"Bernard Liengme" wrote:

=COUNTIF(A1:A100, "=120") - COUNTIF(A1:A100, "<=129")
or
=SUMPRODUCT(--(A1:A100=120),--(A1:A100<=129))
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Ronnie" wrote in message
...
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!
--
Ronnie