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 / New Users / March 2008

Tip: Looking for answers? Try searching our database.

Countif using less than or greater than criteria

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kim B. - 12 Mar 2008 18:14 GMT
I have a list of data in cells d11:d15.  I want to be able to count how many
of  the data points fall within a certain numeric range (ie less than 100 but
greater than 50) but I want to be able to reference a specific cell
containing the criteria rather than using '100' or '50' in the formula.  In
my worksheet 50 is in cell I2 and 100 is in cell K2.
Ron Coderre - 12 Mar 2008 18:21 GMT
Try this:

=COUNTIF(D11:D15,"<"&K2)-COUNTIF(D11:D15,"<="&I2)

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

>I have a list of data in cells d11:d15.  I want to be able to count how
>many
[quoted text clipped - 4 lines]
> In
> my worksheet 50 is in cell I2 and 100 is in cell K2.
Ron Coderre - 12 Mar 2008 18:24 GMT
Couple other options:

=SUMPRODUCT((D11:D15>I2)*(D11:D15<K2))
or
=SUMPRODUCT(--(D11:D15>I2),--(D11:D15<K2))
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

>I have a list of data in cells d11:d15.  I want to be able to count how
>many
[quoted text clipped - 4 lines]
> In
> my worksheet 50 is in cell I2 and 100 is in cell K2.
Jim Thomlinson - 12 Mar 2008 18:30 GMT
Try this...

=SUMPRODUCT((D11:D15>=I2) * (D11:D15<=K2))

here is a link to an explanation of sumproduct
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
Signature

HTH...

Jim Thomlinson

> I have a list of data in cells d11:d15.  I want to be able to count how many
> of  the data points fall within a certain numeric range (ie less than 100 but
> greater than 50) but I want to be able to reference a specific cell
> containing the criteria rather than using '100' or '50' in the formula.  In
> my worksheet 50 is in cell I2 and 100 is in cell K2.
 
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



©2008 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.