Google Answers Logo
View Question
 
Q: Excel Formula - Count cells that meet criteria ( No Answer,   4 Comments )
Question  
Subject: Excel Formula - Count cells that meet criteria
Category: Computers > Algorithms
Asked by: zpilto-ga
List Price: $3.00
Posted: 11 Feb 2006 10:00 PST
Expires: 13 Mar 2006 10:00 PST
Question ID: 444547
I need an excel formula that will return the number of cells in a
range that are equal to another range.  For example:
A   B   C
10      10  
    15  
    25  25
12      12
15      15
    19  19
42      42
19
76
99      99
87      

The only condition is that I don't want to have formulas in multiple cells.

The question then is how many cells in column C equal column A(5)? and
the same for B(2).

I've played around with various COUNTA and IF arrangements, and can't
seem to get the correct formula.

Clarification of Question by zpilto-ga on 11 Feb 2006 13:24 PST
To clarify:

I'm looking for one formula that will return the number of cells in C
with a value equal to the cell in colum A on the same row.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Excel Formula - Count cells that meet criteria
From: ansel001-ga on 13 Feb 2006 23:33 PST
 
How about this?

=SUMPRODUCT(N(A1:A11=C1:C11),N(NOT(ISBLANK(A1:A11))))

This is for matches in non blank cells between columns A and C on the same row.
Subject: Re: Excel Formula - Count cells that meet criteria
From: quadraticresidue-ga on 14 Feb 2006 07:51 PST
 
I don't have a copy of excel handy to verify this but according to this page:
http://www.cpearson.com/excel/excelF.htm
the following should work:
=SUM((C1:C11>=A1)*(C1:C11<=A1))
Subject: Re: Excel Formula - Count cells that meet criteria
From: quadraticresidue-ga on 14 Feb 2006 07:56 PST
 
Actually, to simplify, I think you can just do this:
=SUM(C1:C11=A1)
Subject: Re: Excel Formula - Count cells that meet criteria
From: zpilto-ga on 14 Feb 2006 18:32 PST
 
---

How about this?

=SUMPRODUCT(N(A1:A11=C1:C11),N(NOT(ISBLANK(A1:A11))))

This is for matches in non blank cells between columns A and C on the same row.

---


That works great! Thanks.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy