How do I use an indirect reference to a sheet in another workbook?

G

Guest

I am working with a formula which references a sheet in another workbook:

=SUM('Q:\ServCtr\ACCT\[ACCT Validation.xls]AL'!$D$290:$D$318)

This works, however the "AL" above refers to Alabama and I need to use this
formula for each state which has a separate page. I have a list of all state
abbreviations in my current workbook and would simply like to reference this
by cell instead of using a different state abbreviation on each line. I've
attempted many variations of the following formula (where B7 is the cell
which contains the abbreviation AL)...but no luck.

=SUM(INDIRECT('Q:\ServCtr\ACCT\[ACCT Validation.xls]"&B7&"'!$D$290:$D$318))

Any suggestions would be greatly appreciated! Thanks!
 
B

Biff

Using INDIRECT requires that this file be open otherwise it won't work.
Also, since the file MUST be open you don't need the full path:

=SUM(INDIRECT("'[ACCT Validation.xls]"&B7&"'!D290:D318"))

Biff
 
G

Guest

Thanks Biff! I appreciate your note & advice.

Biff said:
Using INDIRECT requires that this file be open otherwise it won't work.
Also, since the file MUST be open you don't need the full path:

=SUM(INDIRECT("'[ACCT Validation.xls]"&B7&"'!D290:D318"))

Biff

ClintG said:
I am working with a formula which references a sheet in another workbook:

=SUM('Q:\ServCtr\ACCT\[ACCT Validation.xls]AL'!$D$290:$D$318)

This works, however the "AL" above refers to Alabama and I need to use
this
formula for each state which has a separate page. I have a list of all
state
abbreviations in my current workbook and would simply like to reference
this
by cell instead of using a different state abbreviation on each line.
I've
attempted many variations of the following formula (where B7 is the cell
which contains the abbreviation AL)...but no luck.

=SUM(INDIRECT('Q:\ServCtr\ACCT\[ACCT
Validation.xls]"&B7&"'!$D$290:$D$318))

Any suggestions would be greatly appreciated! Thanks!
 
B

Biff

Most people are disappointed when they find out that the other file needs to
be open.

Biff

ClintG said:
Thanks Biff! I appreciate your note & advice.

Biff said:
Using INDIRECT requires that this file be open otherwise it won't work.
Also, since the file MUST be open you don't need the full path:

=SUM(INDIRECT("'[ACCT Validation.xls]"&B7&"'!D290:D318"))

Biff

ClintG said:
I am working with a formula which references a sheet in another
workbook:

=SUM('Q:\ServCtr\ACCT\[ACCT Validation.xls]AL'!$D$290:$D$318)

This works, however the "AL" above refers to Alabama and I need to use
this
formula for each state which has a separate page. I have a list of all
state
abbreviations in my current workbook and would simply like to reference
this
by cell instead of using a different state abbreviation on each line.
I've
attempted many variations of the following formula (where B7 is the
cell
which contains the abbreviation AL)...but no luck.

=SUM(INDIRECT('Q:\ServCtr\ACCT\[ACCT
Validation.xls]"&B7&"'!$D$290:$D$318))

Any suggestions would be greatly appreciated! Thanks!
 

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