Try this array formula

=INDEX(J2:J1000,MATCH(1,(A2:A1000="value1")*(B2:B1000="value2"),0))