• 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.

On which occurrence John made his biggest sale?

Nazim

New Member
Hi all,


It is from homework file in vlookup week, "getting the second matching value" article at chandoo website.


I am having difficulty wrapping my head around this formula:


=COUNTIF(INDIRECT(“C5:C”&SUMPRODUCT((MAX((C5:C17=”John”)*(E5:E17))=((C5:C17=”John”)*(E5:E17)))*1,ROW(C5:C17))),”John”)


Could someone please explain this…..


I tried to go different way: through MATCH function to determine the position of John’s max sale. But all it gives to me is 13, instead of 4. If I have an following array :

{0;1088;0;0;0;1540;0;0;0;726;0;0;2682}, how can I make it look like this {1088;1540;726;2682}, in other words how can I get rid of zeros(false) and keep the order of non-zero(true) values.

My formula was like: =match(max((salesman=”john”)*(sales));((salesman=”john”)*(sales));0)


Thank you.
 
Hope Nazim.. is talking about..


http://chandoo.org/wp/2010/11/10/vlookup-second-value/


Regards,

Deb
 
Back
Top