Instead of using IF. Try using below construct. INDEX(Return Range,Aggregate(15,6,ROW(Range)/(Conditon1)/(Condition2),1))
In your case something like...
In J3: Copy arcoss
=IFERROR(INDEX(C$3:C$6,AGGREGATE(15,6,ROW($3:$6)/($A$3:$A$6=$H3)/($B$3:$B$6=$I3),1)-2),"")