VLOOKUP on external file

C

Charlie

This works:

=VLOOKUP("TEST",'C:\Folder\[File.xls]Sheet1'!A:A,1,FALSE)

This does not:
(In cell C3) =CONCATENATE("'C:\Folder\[File.xls]Sheet1'!A:A")

=VLOOKUP("TEST",C3,1,FALSE)

=VLOOKUP("TEST",INDIRECT(C3),1,FALSE)

Is there a formula, function, or syntax I need to use to reference an
external file if the file is described in a cell?

TIA
Charlie
 
D

Dave Peterson

The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

If that's a problem, then Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/
or
http://xcell05.free.fr/morefunc/english/index.htm

That includes =indirect.ext() that may help you.
This works:

=VLOOKUP("TEST",'C:\Folder\[File.xls]Sheet1'!A:A,1,FALSE)

This does not:
(In cell C3) =CONCATENATE("'C:\Folder\[File.xls]Sheet1'!A:A")

=VLOOKUP("TEST",C3,1,FALSE)

=VLOOKUP("TEST",INDIRECT(C3),1,FALSE)

Is there a formula, function, or syntax I need to use to reference an
external file if the file is described in a cell?

TIA
Charlie
 
C

Charlie

Thanks. I'll take a look tomorrow. Heading home.

Dave Peterson said:
The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

If that's a problem, then Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/
or
http://xcell05.free.fr/morefunc/english/index.htm

That includes =indirect.ext() that may help you.
This works:

=VLOOKUP("TEST",'C:\Folder\[File.xls]Sheet1'!A:A,1,FALSE)

This does not:
(In cell C3) =CONCATENATE("'C:\Folder\[File.xls]Sheet1'!A:A")

=VLOOKUP("TEST",C3,1,FALSE)

=VLOOKUP("TEST",INDIRECT(C3),1,FALSE)

Is there a formula, function, or syntax I need to use to reference an
external file if the file is described in a cell?

TIA
Charlie
 

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