I am trying to do something similar - use count (and later, sum) with multiple conditions, but with slightly more complicated criteria.
On a simple table with only 10 rows, a pair of cells containing the data to match against, and the formula all on the same sheet, I can get this formula to work:
However, for my real scenario, I have the data to be counted on one sheet (called "Answered"), the data to match against and the formula on a second sheet... and the matching has to be partial - ie, using wildcards. My first criteria (in cell B10) is a 4-digit number which is contained at the beginning of a text string in the target range (column B). My second criteria (in cell A10) is a 5-digit number contined somewhere within a text string in the target range (column C).
I have used mixed reference type because the same formula will be applied to different pairs of criteria as you go down rows in a table.
If I match on only one criteria, this formula will work:
or
However, I need to match against two - I need the rows where both conditions are true. I have tried all of the following, and they give me a result of 0.
This gives a result of 1:
What am I doing wrong?
Just fyi - counting the rows where both conditions are true is only the beginning of my woes - later I will have to sum, max, or average date/time data from a third column in the rows where both of the conditions are true.
Bookmarks