Solved

Counting cells against conditions in 2 columns

Posted on 2011-02-17
6
233 Views
Last Modified: 2012-05-11
I run Excel 2002 in Windows 7.  
I have a sheet which grades many examples of 3 items (called A B and C, say) into 3 grades (1, 2, and 3). Each example gets a new row.
Col A contains the Item name, Cols B-H contain other data, Cols I-O contain tests and Col P contains the calculated grade for that example.
I need to count how many examples of Item A in Col A are graded as a 3 in Col P, etc.
Could someone guide me?
Thanks in advance
Tony
0
Comment
Question by:aws148
6 Comments
 
LVL 6

Expert Comment

by:Eric Zwiekhorst
ID: 34914838
sear AWS,

you could use a sumproduct for this.. I will give you the correct formula when you can give me a example.
I run dutch version so paste the formula will not work ...

Kr

Eric
0
 
LVL 33

Expert Comment

by:jppinto
ID: 34914843
Could you post a sample data please? It's not clear what you want to do...

jppinto
0
 
LVL 33

Expert Comment

by:jppinto
ID: 34914856
If you just want to count the number 3 in column A, you can use a simple COUNTIF():

=COUNTIF(A:A,3)

If you want to count using multiple criterias, you need to use SUMPRODUCT() function, like this example:

http://excel-user.blogspot.com/2009/10/sumproduct-sum-values-based-on.html

If you post a sample data, I can give you a more realistic answer.

jppinto
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 33

Accepted Solution

by:
jppinto earned 400 total points
ID: 34914869
If I'm not mistaken, after reading again you question, this is the formula that you want:

=SUMPRODUCT((A:A="A")*(P:P=3))

It will count how many items "A" you have on column A that have a grade "3" in column P, right?

jppinto
0
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 100 total points
ID: 34914914
In Excel 2002 you need to use a fixed range for SUMPRODUCT (not the whole column) so you'd need to revise jppinto's suggestion something like this

=SUMPRODUCT((A$2:A$100="A")*(P$2:P$100=3))

extend ranges as required

regards, barry

regards, barry
0
 

Author Closing Comment

by:aws148
ID: 34915016
Thanks very much. Exactly what was needed.  And thanks in particular for reference to the simple article on the use of SUMPRODUCT which, for me anyway, has always been the hardest function to understand.
regards
Tony
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

762 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

21 Experts available now in Live!

Get 1:1 Help Now