Vlookup with Multiple criteria in different columns

dgross

New Member
Item #Manu #Vendor #New #
46118

<tbody>
</tbody>
1650

<tbody>
</tbody>
3963-535

<tbody>
</tbody>
46973

<tbody>
</tbody>
0531005FG
07-397-6396

<tbody>
</tbody>
2540-145

<tbody>
</tbody>

<tbody>
</tbody>
07-090-0035

<tbody>
</tbody>
4779-073

<tbody>
</tbody>

<tbody>
</tbody>
I need to pull the "new #" based on either getting a match from columns A through C. I would like to use a vlookup that says if there is an item # give me the new # but if there is no item # in the column then find the Manu # and give me the new # and if there is no manu # then match the vendor # for the new #. I already created this formula:
=IF(IFERROR((VLOOKUP(A2,Sheet2!$A:$D,4,FALSE)),(VLOOKUP(B2,Sheet2!$A:$D,4,FALSE)))=0,"",IFERROR((VLOOKUP(A2,Sheet2!$A:$D,4,FALSE)),(VLOOKUP(B2,Sheet2!$A:$D,4,FALSE))))

How can I add in a vlookup for C2?
Sorry for the format but I didn't know how to copy and paste in my excel
 

gaz_chops

Well-known Member
Try it with just iferrors
=IFERROR(VLOOKUP(A2,Sheet2!$A:$D,4,FALSE),IFERROR(VLOOKUP(B2,Sheet2!$A:$D,4,FALSE),VLOOKUP(C2,Sheet2!$A:$D,4,FALSE)))
 

dgross

New Member
Perfect, thats a much simpler way to do it!!!!:)

Where in the formula can I add that if it comes up to #N/A so leave it blank?
 

gaz_chops

Well-known Member
You're welcome and thats what i was about say

=iferror(IFERROR(VLOOKUP(A2,Sheet2!$A:$D,4,FALSE),IFERROR(VLOOKUP(B2,Sheet2!$A:$D,4,FALSE),VLOOKUP(C2,Sheet2!$A:$D,4,FALSE))),"")
 

Some videos you may like

This Week's Hot Topics

  • Get External Data (long shot question!)
    This is likely a long shot but I am wondering if it is at all possible for Excel to somehow 'change' the contents of a URL that is being linked to...
  • Importing multiple excel files into one spreadsheet
    Hi, I'm trying to import multiple excel files (with the same format into a single spreadsheet) so that each day's file is listed underneath the...
  • Cell Formatting
    Good Morning, I need to format a few different cells in the following manners: A1 has to always add a colon (:) after whatever is typed in by a...
  • How to copy multiple rows using If
    Hi all, I'm very new to VBA and have written this simple code to copy certain cells if a certain cell within that row contains any data. I need...
  • Workbook_Change stopped working !
    I am working on an app to speed up & automate processing of Credit Cards statements. After data is input from a CSV file, it is presented to the...
  • VBA If statement
    Dear All, I have two dates, where I'd like a message box to pop, if the dates are between this criteria. [CODE] sDate1 = #10/1/2019#...
Top