Indirect and Path & File Names

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have the following formula that works a treat if all my 80 Workbooks are
open

SUMPRODUCT((INDIRECT("'[Sales for "&$A9&" period 2005_01_01 to
2005_03_31.xls]Sheet1'!$E$5:$E$10000")'Sales'!C9)*(INDIRECT("'[Sales for
"&$A9&" period 2005_01_01 to
2005_03_31.xls]Sheet1'!$a$5:$a$10000")<'Sales'!$H$6))

Is there a way to arrange the above formula to include the path of the
relevent files so they do not need to be open?

The path is C:\Workbooks\<filename>

TIA
 
Hi Anthony
I think I'm right in saying that the INDIRECT function will only work across
workbooks if the workbooks are actually open.
I've used a similar technique using the OFFSET function and I always needed
the books open.

Nick
 
Indirect does NOT work with closed workbooks. Try using named ranges.
 
Don

Thanks for that, I've been pulling my hair out over that one..

So now the question: -
How can I fit a named range in this formula? (I'm not a user of Named ranges)

Don Guillett said:
Indirect does NOT work with closed workbooks. Try using named ranges.

--
Don Guillett
SalesAid Software
(e-mail address removed)
Anthony Slater said:
Hi

I have the following formula that works a treat if all my 80 Workbooks are
open

SUMPRODUCT((INDIRECT("'[Sales for "&$A9&" period 2005_01_01 to
2005_03_31.xls]Sheet1'!$E$5:$E$10000")'Sales'!C9)*(INDIRECT("'[Sales for
"&$A9&" period 2005_01_01 to
2005_03_31.xls]Sheet1'!$a$5:$a$10000")<'Sales'!$H$6))

Is there a way to arrange the above formula to include the path of the
relevent files so they do not need to be open?

The path is C:\Workbooks\<filename>

TIA
 

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

Back
Top