Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Do you of any documentation of Excel regarding specifying complex criteria for COUNTIF - e.g. conditions using functions, referring to neighbor cells, etc.

E.g. something like (this one doesn't work)


share|improve this question
What have you researched? COUNTIF doesn't allow multiple criteria. Did you look at the COUNTIFS function? – CharlieRB Dec 6 '13 at 14:06
I may be wrong, but COUNTIFS doesn't seem to provide anything more than COUNTIF for functions like ISTEXT, ISNUMBER, etc. At least the linked document doesn't mention that. – GrzegorzOledzki Dec 6 '13 at 22:00
up vote 1 down vote accepted

Complex criteria are not available for COUNTIF(S), just the basic comparisons (=,<>,<,>,<=,>=). To do more complex comparisons, you can use SUMPRODUCT and --

For example, to count where there is text in A, and a corresponding number in B, you could use:

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .