D
David
Hi,
I am having a abit of problem with vlookup linking to various
different worksheets within a different workbook.
I have 2 workbooks, lets say workbook A and workbook B. In workbook A
there is about 50 worksheets with different names without pattern.
Workbook B is to be linked to workbook A to obtain various data, and
this can be done with vlookup or index/match.
My problem is that the 50 worksheets in workbook A have different
names and so I need to input the vlookup formula about 50 times (as
each lookup refers to a different worksheet in workbook A). At the
moment I simple copy the formula 50 times in workbook B and then use
REPLACE to change the reference in the formula to different worksheets
in workbook A. However this can be time consuming and tedious
especially when there is more than one set of these workbooks.
I can obtain a list of the worksheet names in Workbook A and put them
in worksheet B. But is there a way i can put it in to the formula??
Say the formula is,
=vlookup(A5,[Workbook A.xls]Sheet1'!$A1:B100,2,false)
Instead of putting "Sheet1" am I able to somehow put a cell reference
in there?
Thank you for reading, and all suggestions are welcome.
Regards,
David
I am having a abit of problem with vlookup linking to various
different worksheets within a different workbook.
I have 2 workbooks, lets say workbook A and workbook B. In workbook A
there is about 50 worksheets with different names without pattern.
Workbook B is to be linked to workbook A to obtain various data, and
this can be done with vlookup or index/match.
My problem is that the 50 worksheets in workbook A have different
names and so I need to input the vlookup formula about 50 times (as
each lookup refers to a different worksheet in workbook A). At the
moment I simple copy the formula 50 times in workbook B and then use
REPLACE to change the reference in the formula to different worksheets
in workbook A. However this can be time consuming and tedious
especially when there is more than one set of these workbooks.
I can obtain a list of the worksheet names in Workbook A and put them
in worksheet B. But is there a way i can put it in to the formula??
Say the formula is,
=vlookup(A5,[Workbook A.xls]Sheet1'!$A1:B100,2,false)
Instead of putting "Sheet1" am I able to somehow put a cell reference
in there?
Thank you for reading, and all suggestions are welcome.
Regards,
David