Vlookup

RJB78

Board Regular
Joined
Aug 8, 2016
Messages
69
Office Version
  1. 365
I'm looking to use a vlookup in 'tab1' to find a value in 'tab2', if it cant find it in 'tab2', then look for it in 'tab3', if it cant find it in either, "N/A"

In tab1, I have a name in cell A1. In column C I want to use the vlookup to lookup the name from A1 from a list containing the names in Tab2, if it doesn't find a value in tab2, I would like to look for the vale in tab3


Thank you in advance
 
Why not both? It seemed to accomplish the desired result. Am I missing something?

Here is formula I have now:
=IFERROR(IFNA(VLOOKUP(A5,'Cur. Pos.'!A:J,10,FALSE),VLOOKUP(A5,'Other Data'!A:C,3,FALSE)),"NA")
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Why not both? It seemed to accomplish the desired result. Am I missing something?

Here is formula I have now:
=IFERROR(IFNA(VLOOKUP(A5,'Cur. Pos.'!A:J,10,FALSE),VLOOKUP(A5,'Other Data'!A:C,3,FALSE)),"NA")


I'd have one of:

=IFNA(VLOOKUP(A15,'Cur. Pos.'!A:J,10,0),VLOOKUP(A5,'Other Data'!A:C,3,0))
=IFNA(VLOOKUP(A15,'Cur. Pos.'!A:J,10,0),IFNA(VLOOKUP(A5,'Other Data'!A:C,3,0),"NA"))
=IFERROR(VLOOKUP(A15,'Cur. Pos.'!A:J,10,0),VLOOKUP(A5,'Other Data'!A:C,3,0))
=IFERROR(VLOOKUP(A15,'Cur. Pos.'!A:J,10,0),IFERROR(VLOOKUP(A5,'Other Data'!A:C,3,0),"NA"))

By the way, 0 means also FALSE in Excel.
 
Upvote 0

Forum statistics

Threads
1,216,153
Messages
6,129,176
Members
449,491
Latest member
maxim_sivakon

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