How do I use VLOOKUP to ref multiple workbooks with multiple tabs?

G

Guest

I have inherited a problem. I work with two multiple worksheet workbooks.
The first workbook is the "master" into which data from the second is pulled.

In the formula pasted below, the phrase "Small Growth" is one of forty
distinct worksheet names in the second workbook "expense stats.xls." Each
worksheet is built identically to the other.

=VLOOKUP($A$3,'C:\My Documents\[expense stats.xls]Small
Growth'!$C$2:$G$2000,5,FALSE).

The formula works but the "Small Growth" expression must be manually
changed. I need a way to automate this. The names originate as values in
$T4 of the INPUT worksheet in workbook one (the master).
 
G

Guest

Check out the INDIRECT formula. It would allow you to construct the text
inside the formula dynamically, so that you could pull the names of the
different worksheets from an array where you'd keep them, for example.
 
A

Ardus Petus

You coul use an INDIRECT referece in your VLOOKUP formula if "expense
stats.xls" is also opened.
If not opened, you get a #REF error

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top