Vlookup Function

nickharr

Active Member
Joined
Apr 8, 2008
Messages
251
Office Version
  1. 2019
Platform
  1. Windows
I use the Vlookup function to look at a specific worksheet and I was wondering whether it can be used to look at more than one worksheet? If I have 3 worksheets with numbers in Column A - and comments in column B - would I be able to search for a recurring number in column A of the 3 worksheets and the return the comments from column B which would vary from one worksheet to the other? Maybe the Vlookup function is not what I need to be using. I would welcome any comments.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I use the Vlookup function to look at a specific worksheet and I was wondering whether it can be used to look at more than one worksheet? If I have 3 worksheets with numbers in Column A - and comments in column B - would I be able to search for a recurring number in column A of the 3 worksheets and the return the comments from column B which would vary from one worksheet to the other? Maybe the Vlookup function is not what I need to be using. I would welcome any comments.

you could use the Vlookup, each table array would need to be set out identical,and each of them would need to have a name, for arguments sake call them CommentsOne CommentsTwo CommentsThree and each of the arrays cover A1:B100 the syntax is along the lines of this, with your lookup value in A2 =Vlookup(A2,Indirect(CommentsOne),2,0)You could house the table names in a drop down list say in B3 on your 1st workshet, then just reference that in the indirect

hopethat helps
 
Upvote 0
Thanks very much for the comments - I will now try these out! Just one other query - when vlookup returns #N/A when it finds nothing - is there a way of it showing a blank cell instead? It would just make my lists easier to read!
 
Upvote 0
Nick

If using xl2007 or greater use:

=IFERROR(VLOOKUP(yourformulahere),"")

or using xl2003 or earlier:

=IF(ISNA(VLOOKUP()),"",VLOOKUP())
 
Upvote 0

Forum statistics

Threads
1,224,547
Messages
6,179,436
Members
452,915
Latest member
hannnahheileen

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