ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   count if two conditions in two arrays are true (https://www.excelbanter.com/excel-programming/416395-count-if-two-conditions-two-arrays-true.html)

Gary

count if two conditions in two arrays are true
 
Using this formula to count the number of occurences when both conditions are
true. Second condition compares dates in an array with a fixed date, say, the
current month which is $D$3

=COUNT(IF(S6:S1150,"Sent TP")+IF(R6:R1150,=$D$3)).

So I want to know how many times the words "Sent TP" occur in the array
S6:S1150, when the dates in the array R6:R1150 equal the current month $D$3

Per Jessen

count if two conditions in two arrays are true
 
Hi

=SUMPRODUCT((S6:S1150="Sent TP")*1,(MONTH(R6:R1150)=D3)*1)

Regards,
Per

"Gary" skrev i meddelelsen
...
Using this formula to count the number of occurences when both conditions
are
true. Second condition compares dates in an array with a fixed date, say,
the
current month which is $D$3

=COUNT(IF(S6:S1150,"Sent TP")+IF(R6:R1150,=$D$3)).

So I want to know how many times the words "Sent TP" occur in the array
S6:S1150, when the dates in the array R6:R1150 equal the current month
$D$3




All times are GMT +1. The time now is 07:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com