Reputation: 11
=SUM(IF(MONTH($M$3:$M$41982)=1,$K$3:$K$41982,">0"))
How to SUM positive values falling in a particular month? I am entering this but not getting an answer
Upvotes: 1
Views: 159
Reputation: 12113
Try
=SUMPRODUCT((MONTH($M$3:$M$41982)=1)*($K$3:$K$41982>0)*$K$3:$K$41982)
$K$3:$K$41982
is greater than 0
and then returning the value of $K$3:$K$41982
=SUM(IF(MONTH(A1:A8)=1,IF(B1:B8>0,B1:B8,0)))
With this formula, you have to enter it with Ctrl+Shift+Enter rather than just Enter
Upvotes: 1