Solved

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

Posted on 2011-09-19
2
263 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:
teylyn 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

947 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now