View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
NBVC[_118_] NBVC[_118_] is offline
external usenet poster
 
Posts: 1
Default SUMPRODUCT, MAX, Few Criteria


Try:

=INDEX(C1:C5000,MATCH(1,(A1:A5000=X1)*(B1:B5000=MA X(IF(A1:A5000=X1,B1:B5000))),0))

confirmed with CTRL+SHIFT+ENTER

or

=Lookup(2,1/((A1:A5000=X1)*(B1:B5000=Z1)),C1:C5000)


where Z1 contains the Sumproduct result from your post.


--
NBVC

Where there is a will there are many ways.
'The Code Cage' (http;//www.thecodecage.com)
------------------------------------------------------------------------
NBVC's Profile: http://www.thecodecage.com/forumz/member.php?userid=74
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=122301