Solved

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

Posted on 2011-09-19
2
266 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

685 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