• 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 to return first instance

tarynmahon

Member
I have the following formula;
=SUMPRODUCT(--([Lookupsheet]A:A=A1),--([Lookupsheet]B:B=B1),--([Lookupsheet]C:C=C1),[Lookupsheet]D:D)

As there are more than one row that matches this criteria my formula is adding all the instances in "D" together, they're all the same so I just want to return the first instance, is there a way of doing this please?
 
Last edited:
No sorry I cannot as my permissions at work dont allow, I've simplified the formula so that its generic you should be able to work it out but please ask if you need me to explain anything else
 
Last edited:
@tarynmahon
Use a similar formula by changing range.
=INDEX(D1:D9,SMALL(IF((--(A1:A9=G1))*(--(B1:B9=H1))*(--(C1:C9=I1)),ROW($A$1:$A$9)-ROW($A$1)+1),1))

Just advise if any issue.
Regards,
 
Back
Top