Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
GTX GTX is offline
external usenet poster
 
Posts: 4
Default How can I dynamically change a file link in a formula?

Our users at the call center here track their calls via an Excel Sheet. They
may name the Excel sheet whatever they want, and then at the end of each week
they E-Mail the Excel Sheet to me, and I check call volumes, types of calls,
etc...

In each Excel sheet they have there's a page that automattically tracks
certain data. I'd like to create an Excel sheet that will allow me to simply
type in the filename (such as "bob.xls") into, let's say, Sheet 1, A1. In
Sheet 1, A2, an example formula I would have would be
=SUM([bob.xls]Sheet1!$A$1:$A$10). However, in that formula, if I were to
change the "A1" on my tracking list, the formula would remain the same. What
I want to do is be able to change A1 to, say, "joe.xls", the forumula would
AUTOMATICALLY change to =SUM([joe.xls]Sheet1$A$1:$A$10).

Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default How can I dynamically change a file link in a formula?

Try =SUM(INDIRECT("["&A1&"]Sheet2!$A$1:$A$10"))
Or in case they have spaces in the file name
=SUM(INDIRECT("'["&A1&"]Sheet2'!$A$1:$A$10"))
That is: .....INDIRECT( double-quote single-quote [ .......
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"GTX" wrote in message
...
Our users at the call center here track their calls via an Excel Sheet.
They
may name the Excel sheet whatever they want, and then at the end of each
week
they E-Mail the Excel Sheet to me, and I check call volumes, types of
calls,
etc...

In each Excel sheet they have there's a page that automattically tracks
certain data. I'd like to create an Excel sheet that will allow me to
simply
type in the filename (such as "bob.xls") into, let's say, Sheet 1, A1. In
Sheet 1, A2, an example formula I would have would be
=SUM([bob.xls]Sheet1!$A$1:$A$10). However, in that formula, if I were to
change the "A1" on my tracking list, the formula would remain the same.
What
I want to do is be able to change A1 to, say, "joe.xls", the forumula
would
AUTOMATICALLY change to =SUM([joe.xls]Sheet1$A$1:$A$10).

Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default How can I dynamically change a file link in a formula?

Ooops, of course you need Sheet1 not Sheet2 in these formulas
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"GTX" wrote in message
...
Our users at the call center here track their calls via an Excel Sheet.
They
may name the Excel sheet whatever they want, and then at the end of each
week
they E-Mail the Excel Sheet to me, and I check call volumes, types of
calls,
etc...

In each Excel sheet they have there's a page that automattically tracks
certain data. I'd like to create an Excel sheet that will allow me to
simply
type in the filename (such as "bob.xls") into, let's say, Sheet 1, A1. In
Sheet 1, A2, an example formula I would have would be
=SUM([bob.xls]Sheet1!$A$1:$A$10). However, in that formula, if I were to
change the "A1" on my tracking list, the formula would remain the same.
What
I want to do is be able to change A1 to, say, "joe.xls", the forumula
would
AUTOMATICALLY change to =SUM([joe.xls]Sheet1$A$1:$A$10).

Any ideas?



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
HOW TO CHANGE A LINK IN A FORMULA SSJ New Users to Excel 1 July 13th 07 06:08 PM
Dynamically Change date in Formula Midget Excel Worksheet Functions 3 February 9th 07 02:35 AM
how do i link to a pivot table to get data dynamically Michael001 Excel Worksheet Functions 2 February 23rd 06 10:23 AM
change cell link in combox box dynamically Kate Yang Excel Discussion (Misc queries) 2 August 30th 05 08:51 PM
Change Axes Scale Dynamically Fysh Charts and Charting in Excel 3 December 16th 04 02:57 PM


All times are GMT +1. The time now is 09:44 AM.

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"