Indirect addressing for linked file

C

ChEBass

I have a master calculation file which pulls data from a monthly data file. I
would like to use indirect addressing so I anoly change one cell each month
to point to the correct spreadsheet. I can use CONCATENATE to create
something that looks like the correct command, but I cannot make it an
executable statement to actually pull the data - it is text. Any ideas?
 
L

Luke M

I think you want the INDIRECT formula.

something like:
=INDIRECT('[Book1.xls]&B2&"$C$2")

would return the value of cell C2 from Book1.xls, whatever sheet you have
the name of in cell B2.

Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*
 
C

ChEBass

These are cells from the spreadsheet as it is:
='[hourly steam December 2008.xls]Summary'!c34
='[hourly steam December 2008.xls]Summary'!c35
='[hourly steam December 2008.xls]Summary'!c36
....

I would like to set it up so I only put the month name in one cell and all
the links change.
 
L

Luke M

After seeing your example...

=INDIRECT("'[hourly steam "&B2&" 2008.xls]Summary'!"&c34)

where B2 contains the month you want.

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


ChEBass said:
These are cells from the spreadsheet as it is:
='[hourly steam December 2008.xls]Summary'!c34
='[hourly steam December 2008.xls]Summary'!c35
='[hourly steam December 2008.xls]Summary'!c36
...

I would like to set it up so I only put the month name in one cell and all
the links change.



Jarek Kujawa said:
could you provide some example?
 
C

ChEBass

It didn't work but I played with the theme a little and got something that
does work.
first I created the path with CONCATENATE
=CONCATENATE("'[hourly steam "&B2&" 2008.xls]Summary'!C34")
then I reference that cell with INDIRECT and it pulls the data. Not quite as
clean as I would like but it works.

Thanks for the help.

Luke M said:
After seeing your example...

=INDIRECT("'[hourly steam "&B2&" 2008.xls]Summary'!"&c34)

where B2 contains the month you want.

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


ChEBass said:
These are cells from the spreadsheet as it is:
='[hourly steam December 2008.xls]Summary'!c34
='[hourly steam December 2008.xls]Summary'!c35
='[hourly steam December 2008.xls]Summary'!c36
...

I would like to set it up so I only put the month name in one cell and all
the links change.



Jarek Kujawa said:
could you provide some example?


I have a master calculation file which pulls data from a monthly data file. I
would like to use indirect addressing so I anoly change one cell each month
to point to the correct spreadsheet. I can use CONCATENATE to create
something that looks like the correct command, but I cannot make it an
executable statement to actually pull the data - it is text. Any ideas?
 

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