COUNT function 2 Columns

  • Thread starter Thread starter JAMES
  • Start date Start date
J

JAMES

I have two columns of data, CATEGORY and NUMBER, and want
to be able to COUNT the number instances where CATEGORY =
X and NUMBER = Y.

I know how to use the COUNT function on each column, but
I don't know how to use it on two columns.

Thanks!
 
James, how about something like this
=SUMPRODUCT((A2:A25="test")*(B2:B25=24))

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 2003
** remove news from my email address to reply by email **
 
Say "Category" is column A, and "Number" is column B.

=SUMPRODUCT((A2:A100="X")*(B2:B100="Y"))
 
Sorry, I should have said that both columns contain TEXT -
any ideas?

eg. two columns CATEGORY (A, B, C) and SIZE (small, med,
large). I want to count how many of a certain category
AND a certain size.
 

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