Reference to a linked file

  • Thread starter Thread starter Mike D.
  • Start date Start date
M

Mike D.

Hi. I have two files to which I would like to link cells to. Each week, the
file names will change based on the week number.

The name of one file is the current week (for example Week 3.xls).

The name of the other file is always one less than the first (for example
Week 2.xls).

Is there a way to do math within the cell reference?
 
Maybe...

You could use some functions to find the number (like: =search(), =mid(),
=left(),...).

But the bad news is that you're going to have to use =indirect() to surround
your formula that evaluates to the workbook name/worksheet name/range address.
And =indirect() will only work if the sending workbook is open.

But the good news is that Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/

That includes =indirect.ext() that allows you to return values from closed
workbooks.

===
If none of this helped and you want to try, you'll want to post the real
workbook names so that the formulas can get built correctly.
 

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