• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

SUMPRODUCT or COUNTIF?

David Evans

Active Member
Easy One for you today

I want to be able to count the number of amounts in Holdings, where Fee A is less than Fee B.

I have been laboring too long in the trenches today and it's not coming to me ...
Thanks for any assistance :confused:
 

Attachments

Slightly shorter and doesn't require Array Entering
=SUMPRODUCT((C2:C87>0)*(A2:A87<B2:B87))

I assumed Holding had to be greater than 0

If Holding can be 0 then
=SUMPRODUCT(--(A2:A87<B2:B87))
 
Thanks guys - I was remiss in the posing of the question - bit vague ...

I want to count the number of Cells that meet All of these criteria
Fee A is less than Fee B
Holding is greater than 0


Yes Hui, Holdings can be zero

Thanks again guys ...
 
Hi:

Thanks
Anyways Hui's formula =SUMPRODUCT((C2:C87>0)*(A2:A87<B2:B87)) will also do the trick. :)
 
Back
Top