Countif

J

Jo

H

I hope you can help. I want to count the number of cells that are >=500 and <=599 ie fall between these numbers in a column

Thanks in advance
 
F

Frank Kabel

Hi Jo
try
=SUMPRODUCT((A1:A100>=500)*(A1:A100<=599))

or as alternative syntax
=SUMPRODUCT(--(A1:A100>=500),--(A1:A100<=599))

or using two COUNTIF functions:
=COUNTIF(A1:A100,">=500")-COUNTIF(A1:A100,">599")
 

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

Top