?
Solved

MS Excel counting cells that meet criteria based to two conditions

Posted on 2013-01-12
5
Medium Priority
?
255 Views
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.

Dave
0
Comment
Question by:Irazor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 22

Accepted Solution

by:
Flyster earned 800 total points
ID: 38770495
You can use SUMPRODUCT:

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

Flyster
0
 
LVL 31

Expert Comment

by:gowflow
ID: 38770515
Well I hope you have Excel 2007 and up as in this attached file.  You use SUMIFS
gowflow
Copy-of-two-criteria.xlsx
0
 
LVL 31

Expert Comment

by:gowflow
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"

gowflow
0
 

Author Closing Comment

by:Irazor
ID: 38770538
This is excellent as it gives the result in one cell. Thanks.
0
 
LVL 31

Expert Comment

by:gowflow
ID: 38770651
Sorry hv u tried my solution ?
gowflow
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

752 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