MS Excel counting cells that meet criteria based to two conditions

Posted on 2013-01-12
Last Modified: 2013-01-12
Hi all,
I wonder if you could help me.

I have two columns of data. One column 'F' has the results of a calculation the other 'I' has the results of a count of a teams results. (I've attached a simple spreadsheet that represents this but not the actual one to keep things simple.) two-criteria.xls

I want to be able to count the cells in 'I' that have 1 in and it's corresponding value of 'F' range is between 0.5 and 1 for instance. I thought I could use a COUNTIF function but for the life of me I can't get it to work.

I've deleted out my attempts from the spreadsheet.

Any assistance would be gratefully received.

Question by:Irazor
  • 3
LVL 22

Accepted Solution

Flyster earned 200 total points
ID: 38770495
You can use SUMPRODUCT:

=SUMPRODUCT(--(I:I=1),--(F:F >=0.5),--(F:F<=1))

LVL 29

Expert Comment

ID: 38770515
Well I hope you have Excel 2007 and up as in this attached file.  You use SUMIFS
LVL 29

Expert Comment

ID: 38770516
If you want to include both 0.5 and 1 then in the formual you would change
">0.5" to ">=0.5" and
"<1" to "<=1"


Author Closing Comment

ID: 38770538
This is excellent as it gives the result in one cell. Thanks.
LVL 29

Expert Comment

ID: 38770651
Sorry hv u tried my solution ?

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now