COUNTIF - more complex

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am needing a formula that will count text occurences in multiple columns,
similar to an a COUNTIF statment but using a filter quality. For example, I
need to know for all rows with the name of Joe in one column, how many times
Joe has a case "Open". I am using the 2000 version.
 
Try something like this:

=SUMPRODUCT(--(A1:A10="Joe"),--(B1:B10="Open"))

Better to use cells to hold the criteria:

D1 = Joe
E1 = Open

=SUMPRODUCT(--(A1:A10=D1),--(B1:B10=E1))
 
I am needing a formula that will count text occurences in multiple columns,
similar to an a COUNTIF statment but using a filter quality. For example,
I
need to know for all rows with the name of Joe in one column, how many
times
Joe has a case "Open". I am using the 2000 version.

=SUMPRODUCT((A1:A100="Joe")*(C1:C100="Open"))

where I assumed column A had the name and column C had the status... change
then as appropriate. Also change the range to cove the maximum number of
rows you will need to handle. Probably better to put Joe and Open in their
own cells and test that instead of the string constant directly.

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top