Vlookup

sburkhar

Active Member
Joined
Oct 4, 2006
Messages
363
I need a VLOOKUP with two conditions

If G13 is used then complete the VLOOKUP (G13 will not be used often)
If not, and E13 is used then complete the VLOOKUP
Below is what I have for E13 (E13 will be used 90% of the time)


IF(ISERROR(VLOOKUP(E13,'[2011 FIAT VLOOKUP.xls]Sheet1'!$B:$L,4,FALSE)),"",VLOOKUP(E13,'[2011 FIAT VLOOKUP.xls]Sheet1'!$B:$L,4,FALSE))
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
IF(ISERROR(VLOOKUP(E13,'[2011 FIAT VLOOKUP.xls]Sheet1'!$B:$L,4,FALSE)),VLOOKUP(G13,'[2011 FIAT VLOOKUP.xls]Sheet1'!$B:$L,4,FALSE),VLOOKUP(E13,'[2011 FIAT VLOOKUP.xls]Sheet1'!$B:$L,4,FALSE))
 
Upvote 0
Excellent! But, I can't have it say #REF or #N/A if the cells are empty. I thought the IF(ISERROR took care of that.

This was originally written in a 97-2003 workbook, but I'm now working in 2007.
 
Upvote 0
=IF(NOT(ISERROR(VLOOKUP(E13,'[2011 FIAT VLOOKUP.xls]Sheet1'!$B:$L,4,FALSE))),VLOOKUP(E13,'[2011 FIAT VLOOKUP.xls]Sheet1'!$B:$L,4,FALSE),
IF(NOT(ISERROR(VLOOKUP(G13,'[2011 FIAT VLOOKUP.xls]Sheet1'!$B:$L,4,FALSE))),VLOOKUP(G13,'[2011 FIAT VLOOKUP.xls]Sheet1'!$B:$L,4,FALSE),""))
 
Upvote 0
Works perfectly!! I could have written that you know.............only mine would have been much shorter and wouldn't have worked.

thanks!
 
Upvote 0
Since you have version 2007, see if this works for you.

=IFERROR(IFERROR(VLOOKUP(E13,'[2011 fiat.xlsx]Sheet1'!B:L,4,0),VLOOKUP(G13,'[2011 fiat.xlsx]Sheet1'!B:L,4,0)),"No match")
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,285
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top