Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / November 2005

Tip: Looking for answers? Try searching our database.

Count if a number is between X and Y

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WBTKbeezy - 17 Nov 2005 20:50 GMT
I need a fucntion that allows me to count if in a range of numbers how many
are greater than (for example) 250 but less than (for example) 2000... can
Countif do this? If not, how should I go about it?
Jezebel - 17 Nov 2005 20:58 GMT
In another column insert the test formula: =AND(A1>250, A1<2000), then count
the number of cells in that column containing TRUE.

>I need a fucntion that allows me to count if in a range of numbers how many
> are greater than (for example) 250 but less than (for example) 2000... can
> Countif do this? If not, how should I go about it?
Bob Phillips - 17 Nov 2005 20:58 GMT
=COUNTIF(A:A,"<2000")-COUNTIF(A:A,"<250")

Signature

HTH

RP
(remove nothere from the email address if mailing direct)

> I need a fucntion that allows me to count if in a range of numbers how many
> are greater than (for example) 250 but less than (for example) 2000... can
> Countif do this? If not, how should I go about it?
bpeltzer - 17 Nov 2005 21:02 GMT
You could get there with sumproduct, but countif can handle it in two steps:  
=countif(a:a,">250")-countif(a:a,">=2000").

> I need a fucntion that allows me to count if in a range of numbers how many
> are greater than (for example) 250 but less than (for example) 2000... can
> Countif do this? If not, how should I go about it?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.