COUNTIF With Multiple Dates, Columns and Text

S

Shannon

I need to count a number of entries that are between two dates where that
data is stored in column A and also if the text value in column F is "yes".
I have a formula to count the entries between two dates and a formula to
count the entries for the text equal to "yes", but I cannot bring it together
to do both...any suggestions?

=COUNTIF('Student Listing'!$A$2:$A$300,">=10/1/04")-COUNTIF('Student
Listing'!$A$2:$A$300,">=10/31/04")

=COUNTIF('Student Listing'!$F$2:$F$300,"Yes")

Thanks!
 
D

duane

=sumproduct(('Studen
Listing'!$A$2:$A$300>=datevalue("10/1/04"))*('Student
Listing'!$A$2:$A$300<=datevalue("10/31/04"))*('Studen
Listing'!$F$2:$F$300="Yes")*1)

count of all occurances of yes between 10/1 and 10/31 inclusive

assumes the dates in column A are dates and not tex
 
M

Max

One way

Try:

=SUMPRODUCT(('Student Listing'!$A$2:$A$300>=DATE(2004,10,1))*('Student
Listing'!$A$2:$A$300<=DATE(2004,10,31))*('Student
Listing'!$F$2:$F$300="Yes"))
 

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