Question on Conditional COUNTIF

  • Thread starter Question on Conditonal Countif
  • Start date
Q

Question on Conditonal Countif

Hi,

I have a huge data base in which the first column is a date. The following
comuns have non-numercial data that I need to count in a monthly basis.
For example, column B could be either "W", "S", or "B"; I need to know how
many "W", "S", and "B" are in January, February, and so forth.

I tried to use an embedded IF clause, but did not work.

Thanks for you help

Suzanne,

(e-mail address removed)
 
O

Ola

I think this should work:

Month...W...S...B...
1.......=SUMPRODUCT(--(MONTH(A2:A100)=1)*(B2:B100="W"))
2
....
12

Ola Sandstrom


Note:
The formula above is "easy" to understand and the below is more Copy friendly
=SUMPRODUCT(--(MONTH($A$2:$A$100)=$L2)*($B$2:$B$100=M$1))
 

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

Similar Threads

Countif 3
countif 3
Using <= in countifs statement 1
Countif Formulas 2
If Formula and Dates 4
Count Blank Cells with Conditions 3
Vlookup? 1
Two Condition - search 2

Top