counting information in one column based on criteria in another co

L

lost in excel

Have a list of states in one column and I want to count how many times a
value appears in another column. My example is this I have a range of
numbers in column c from 1 to 10. Based on the value in column a (state
abbrv) I need to count the number of times the number 6 appears.
 
T

T. Valko

Try something like this...

To count for state New York and 6:

=SUMPRODUCT(--(A1:A100="NY"),--(C1:C100=6))
 
L

lost in excel

It worked like a charm! Thanks for the help!

T. Valko said:
Try something like this...

To count for state New York and 6:

=SUMPRODUCT(--(A1:A100="NY"),--(C1:C100=6))

--
Biff
Microsoft Excel MVP





.
 

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

Top