
Originally Posted by
nander
I've updated the attached file. You will notice in cells H13-H15 the result is AMC. AMC is correct for cell H13 but not for H14 or H15. See what I have in this small example is 3 separate Vendors but these 3 vendors have the same Vendor Part number. In a section below the main group of examples,(same worksheet) I have the 3 items with their correct vendors.
It seems like the information your pulling is one of the categories you want to match up... (i.e. Class in one sheet is the same thing as Vendor Code in the other)
If so try this in H2:
=IF(ISNA(VLOOKUP(A2,JS!$A$2:$D$21,3,FALSE))," ",INDEX(JS!$C$2:$C$21,MATCH(1,(JS!$A$2:$A$21=A2)*(JS!$C$2:$C$21=D2),0)))
which must be confirmed with CTRL+SHIFT+ENTER not just ENTER... you'll see {} brackets appear around the formula....then copy down the formula.
If you make any revisions you will have to reconfirm with the CSE key combo.
Bookmarks