criteria in multiple columns

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to get a count of rows where the date column has a specific date
and a second column is marked with an "X".
Example:
Col F is a column of dates
Col L is marked with an "X" by the end user if certain events have taken
place.

Please help.
 
Try this:

=SUMPRODUCT(--(F1:F10=DATE(2007,1,1)),--(L1:L10="X"))

Or, use cells to hold the criteria:

A1 = some date like 1/1/2007
B1 = X

=SUMPRODUCT(--(F1:F10=A1),--(L1:L10=B1))

Biff
 
Can you please tell me how to make this work with a date range (ex: 3/1/07 -
3/31/07) also?
 
Try one of these:

=SUMPRODUCT(--(F1:F10>=DATE(2007,3,1)),--(F1:F10<=DATE(2007,3,31)),--(L1:L10="X"))

Or:

A1 = start date 3/1/2007
B1 = end date 3/31/2007
C1 = X

=SUMPRODUCT(--(F1:F10>=A1),--(F1:F10<=B1),--(L1:L10=C1))

Biff
 
Once again you are a lifesaver! Thanks

T. Valko said:
Try one of these:

=SUMPRODUCT(--(F1:F10>=DATE(2007,3,1)),--(F1:F10<=DATE(2007,3,31)),--(L1:L10="X"))

Or:

A1 = start date 3/1/2007
B1 = end date 3/31/2007
C1 = X

=SUMPRODUCT(--(F1:F10>=A1),--(F1:F10<=B1),--(L1:L10=C1))

Biff
 

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

Back
Top