Solved

EXCEL: USING A CELL VALUE TO REFERENCE A WORKBOOK IN A FORMULA

Posted on 2011-09-19
2
264 Views
Last Modified: 2012-05-12
Hi,

I have the following formula which perform a Vlookup in a workbook located in a different file:

=VLOOKUP(A3,'C:\Users\Roberto\Desktop\TEST\[TEST1.xls]Sheet1'!$A:$C,2,FALSE)

I would like that the name of the workbook [TEST1.xls] comes form Cell B2... so if I change the value there the Formula will link to a different Workbook...

It's that possible ?

Thank you in advance for your help,
Roberto.
0
Comment
Question by:Pabilio
2 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst earned 500 total points
ID: 36563666
Hello,

you could use

=VLOOKUP(A3,INDIRECT("'"&B2&"Sheet1'!$A:$C"),2,FALSE)

but Indirect() will only work when the other file is open. A free add-in called Morefunc has a function called Indirect.Ext which also works with closed workbooks. You can download the add-in here: http://download.cnet.com/Morefunc/3000-2077_4-10423159.html

cheers, teylyn
0
 
LVL 5

Author Closing Comment

by:Pabilio
ID: 36588940
Hi Teylyn!...

I totally forgot to close this question ... Sorry for the delay.

I tried the Indirect.Ext and it does the trick.

Thank you for your help.

Regards,
Roberto.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question