VLOOKUP Function's Table_Array Argument

sohrabc

New Member
Joined
Jun 14, 2010
Messages
2
I am using the VLOOKUP function in a worksheet named REC-ISS in a workbook named EE-Cardex.xls.
However, the Table Array to be referred is B22:P33 in different worksheets, in another workbook named MPR-Jun10.xls.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
The name of the particular worksheet required to be used, is specified in cells H3, N3, T3, Z3, etc. of the worksheet REC-ISS of the workbook EE-Cardex.
<o:p></o:p>
Hence, if the contents of the cells H3, N3, T3, Z3, etc. are ABC, XYZ, MNO, UVW respectively (being the names of the worksheets in the workbook MPR-Jun10), then the Table-Array argument of the VLOOKUP function should accordingly change in columns H, N, T, Z, (as per the content of H3, N3, T3, Z3, etc.), as under:
'[MPR-Jun10.xls]ABC'!B22:P33
'[MPR-Jun10.xls]XYZ'!B22:P33
'[MPR-Jun10.xls]MNO'!B22:P33
'[MPR-Jun10.xls]UVW'!B22:P33
<o:p></o:p>
I need to know how the Table_Array argument needs to be described to accomplish this, i.e. what should be in place of ??? in the Table_Array argument '[MPR-Jun10.xls]???'!B22:P33, or how best this could be simply achieved.
<o:p></o:p>
Many thanks for your kind help.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Have a look at INDIRECT if MPR-Jun10.xls can be kept open, otherwise INDIRECT.EXT with examples at this board.
 
Upvote 0
Thank you Alladin for your kind tip.

Since MPR-Jun10.xls can be kept open, I tried using INDIRECT but had to struggle a lot to get the right syntax.

However, I'm very happy to say that I was able to get the result I wanted, by using the following for the Table_Array argument in the 'H' column of my spreadsheet, where the name of the specific worksheet of the MPR-Jun10.xls workbook (which was required to be used to refer to the Table_Array B21:P33) was specified in the cell H3 of the worksheet REC-ISS of the workbook EE-Cardex.xls :
INDIRECT("'[MPR-Jun10.xls]"&$H$3&"'!$B$21:$P$33")

Thanks again.

Regards
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,721
Members
449,465
Latest member
TAKLAM

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