Countif Between

A

Alex

I need to count how many cells in column D have a value in them between 7 and
3.
I cant find anything that lets me use between as criteria and Countif only
allows me to have 1 criteria.

Any ideas?
 
J

Jason Morin

Here are 3 possible ways (inclusive):

=COUNTIF(D1:D100,">=3")-COUNTIF(D1:D100,">7")
=SUMPRODUCT(--(D1:D100>=3),--(D1:D100<=7))
=COUNT(D1:D100)-SUM(COUNTIF(D1:D100,{"<3",">7"}))

HTH
Jason
Atlanta, GA
 
J

JulieD

Hi Alex

here's two methods
=SUMPRODUCT(--(D3:D35>3),--(D3:D35<7))
=COUNTIF(D3:D35,">"&3)-COUNTIF(D3:D35,">"&6)

Cheers
JulieD
 

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