using count if to count a range within a range

kyoung22

New Member
Joined
Nov 16, 2005
Messages
3
I am having an issue using the countif feature.
What I would like to do is a count of a range but count if a number is greater that one number and less than another number.

I started this way:
=countif(Q6:Q3067, ">0<2")
Can I ask it to count if a number is between two numbers like this?
This seems like it sould be easy enough to do, what am I overlooking?
Any suggestions/solutions whould be greatly appreciated.

Kim
 

Some videos you may like

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
55,413
Office Version
  1. 365
Platform
  1. Windows
WELCOME TO THE BOARD!

When you have more than one condition, a single COUNTIF statement will not work. You can use SUMPRODUCT when you have multiple conditions:

=SUMPRODUCT((Q6:Q3067>0)*(Q6:Q30670<2))
 

kyoung22

New Member
Joined
Nov 16, 2005
Messages
3
WOW - Thanks so much! I am sure you knew that it would work but YEA - it worked!!
:biggrin:
Kim



jmiskey said:
WELCOME TO THE BOARD!

When you have more than one condition, a single COUNTIF statement will not work. You can use SUMPRODUCT when you have multiple conditions:

=SUMPRODUCT((Q6:Q3067>0)*(Q6:Q30670<2))
 

Watch MrExcel Video

Forum statistics

Threads
1,118,432
Messages
5,572,072
Members
412,437
Latest member
PietTheijssen
Top