Count no. of nonblank cells in one column based on criteria of ano

B

Beach Lover

I need to count the number of nonblank cells in one column based on criteria
from cells in another column. Example: Column A contains years 2006, 2007,
2008. Column B contains rank such as Lt., Col., etc. I need to know the
total number of 2006 individuals who have the rank of Lt., the number of 2006
individuals who have the rank of Col., etc.

I can get the count of non-blank cells but cannot figure out how to have it
look at the other column for the type of count I need.
 
B

Bob Phillips

=sumproduct(--($A$2:$A$200=2006),--($B$2:$B$200="Lt")

etc.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
M

Mike

=SUMPRODUCT((A1:A12=2006)*(B1:B12="Lt"))

Will return the number of Lt for 2006. The formula can be copied and pasted
into other cells to return for example 2007 - Col
 
B

Beach Lover

This worked great! Thank you so much!

Bob Phillips said:
=sumproduct(--($A$2:$A$200=2006),--($B$2:$B$200="Lt")

etc.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
B

Beach Lover

So how would I find this information? Other than the way I found it by using
the discussion group? I am not a programmer but like to be able to find
answers for myself, if possible.
 

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