COUNTIF not working

  • Thread starter Thread starter tom_n_ape
  • Start date Start date
T

tom_n_ape

I am trying to run the COUNTIF function on a range of data as follows:

=COUNTIF(G$19:G$100, ">=" & H19 & "<" & H20)

or, another way to write what I'm trying to do is:

=COUNTIF(G$19:G$100, ">=" & H19 AND G$19:G$100 & "<" & H20)

Neither of the above functions is working the way I need it to. I am
simply trying to find the number of values in the range that fall
within the lower and upper bound: i.e., H19 and H20.

Any help with this would be greatly appreciated.

Thanks,

~tom
 
=COUNTIF(G$19:G$100,">="&H19)-COUNTIF(G$19:G$100,">"&H20)

This yields a count based on an inclusive between.
 

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