Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kenton_SJ
 
Posts: n/a
Default Can I add a formula to a link?

Basically I have a yearly work book that maintains a record of my daily
activities. I'm am making a summary workbook that links to my yearly ones.
I'd like to be able to type in the year and then a formula changes the link
to the year number. My workbooks are called 2002, 2003, 2004.... I can get
it to link fine when I type in the filename, but I'm not sure if it is
possible to get a formula to do the same.

Thanks.
  #2   Report Post  
bj
 
Posts: n/a
Default

check out the indirect() function.
I am not sure what you want to do with it, but think this will work.

"Kenton_SJ" wrote:

Basically I have a yearly work book that maintains a record of my daily
activities. I'm am making a summary workbook that links to my yearly ones.
I'd like to be able to type in the year and then a formula changes the link
to the year number. My workbooks are called 2002, 2003, 2004.... I can get
it to link fine when I type in the filename, but I'm not sure if it is
possible to get a formula to do the same.

Thanks.

  #3   Report Post  
RagDyer
 
Posts: n/a
Default

If your original formulas might be:

=SUM([2002.xls]Sheet1!$B$1:$B$10)
=SUM([2003.xls]Sheet1!$B$1:$B$10)

Then use, say D1, to enter your WB name (2002, 2003, ... etc.)
And try this:

=SUM(INDIRECT("["&D1&".xls]sheet1!$B1:$B10"))

NOW, this *only* works when the other WBs are *open*.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



Kenton_SJ" wrote in message
...
Basically I have a yearly work book that maintains a record of my daily
activities. I'm am making a summary workbook that links to my yearly

ones.
I'd like to be able to type in the year and then a formula changes the

link
to the year number. My workbooks are called 2002, 2003, 2004.... I can

get
it to link fine when I type in the filename, but I'm not sure if it is
possible to get a formula to do the same.

Thanks.


  #4   Report Post  
Kenton_SJ
 
Posts: n/a
Default

Thanks RagDyer,

That worked sweet. Now I just have to try that INDIRECT.EXT function by
Xcell05 to see if it works with the sheets closed.

"RagDyer" wrote:

If your original formulas might be:

=SUM([2002.xls]Sheet1!$B$1:$B$10)
=SUM([2003.xls]Sheet1!$B$1:$B$10)

Then use, say D1, to enter your WB name (2002, 2003, ... etc.)
And try this:

=SUM(INDIRECT("["&D1&".xls]sheet1!$B1:$B10"))

NOW, this *only* works when the other WBs are *open*.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



Kenton_SJ" wrote in message
...
Basically I have a yearly work book that maintains a record of my daily
activities. I'm am making a summary workbook that links to my yearly

ones.
I'd like to be able to type in the year and then a formula changes the

link
to the year number. My workbooks are called 2002, 2003, 2004.... I can

get
it to link fine when I type in the filename, but I'm not sure if it is
possible to get a formula to do the same.

Thanks.



  #5   Report Post  
RagDyer
 
Posts: n/a
Default

I read somewhere that Laurent's add-in works well, *BUT* ... it *doesn't*
work with range references.

So, the formula I used as an example, might not work.

Harlan has come up with something to do a similar job, and supposedly works
with ranges, which he calls his "pull function".

Check it out he

ftp://members.aol.com/hrlngrv/pull.zip

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Kenton_SJ" wrote in message
...
Thanks RagDyer,

That worked sweet. Now I just have to try that INDIRECT.EXT function by
Xcell05 to see if it works with the sheets closed.

"RagDyer" wrote:

If your original formulas might be:

=SUM([2002.xls]Sheet1!$B$1:$B$10)
=SUM([2003.xls]Sheet1!$B$1:$B$10)

Then use, say D1, to enter your WB name (2002, 2003, ... etc.)
And try this:

=SUM(INDIRECT("["&D1&".xls]sheet1!$B1:$B10"))

NOW, this *only* works when the other WBs are *open*.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



Kenton_SJ" wrote in message
...
Basically I have a yearly work book that maintains a record of my

daily
activities. I'm am making a summary workbook that links to my yearly

ones.
I'd like to be able to type in the year and then a formula changes the

link
to the year number. My workbooks are called 2002, 2003, 2004.... I

can
get
it to link fine when I type in the filename, but I'm not sure if it is
possible to get a formula to do the same.

Thanks.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Named SUM Formula with relative refernce(s) Werner Rohrmoser Excel Worksheet Functions 2 April 20th 05 04:56 PM
Frequency formula Curious Excel Worksheet Functions 1 April 12th 05 09:49 PM
formula and cell link movements wenrichards Excel Worksheet Functions 2 January 17th 05 09:36 AM
Cell shows formula and not the result of the formula. stumpy1220 Excel Worksheet Functions 2 January 14th 05 05:11 PM


All times are GMT +1. The time now is 05:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"