Hi. I have been a user of this forum for a while now but have only just signed up. I have a fairly tough question.
In cell B10 I have "'01/09/12" (note the ' so it is appearing as text not a date) - this is the start date.
In cell B11 I have "'30/09/12" (as above) - this is the end date.
So my date range I want to work with is 01/09/12 - 30/09/12
In cells D50:D123 I have a whole list of different actual (without ' ) dates.
In cells E50:E123 I have different words (these are "YES", "NO" and "MAYBE")
In one cell (say A1) I want to count how many times a date within my range (01/09/12 - 30/09/12) appears in D50:D123 so I use the following which works perfectly.
=SUMPRODUCT(--($D$50:$D$123>=DATEVALUE(B10)),--($D$50:$D$123<=DATEVALUE(B11)))
However (and this is where I have problems, in a cell (say A2) I want to count how many times how many times a date is within my range (in cells D50:D123) only if it has "YES" in the cell next to it (in cells E50:E123).
Example #1:
D55 has "09/09/12"
E55 has "YES"
A2 counts 1
Example #2:
D55 has "09/09/12"
E55 has "NO"
A2 counts 0
If anyone has any ideas, please let me know. Thanks.
Bookmarks