Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
mgarcia
 
Posts: n/a
Default Q: Can a formula reference a cell to get the file name to link to for data?


I am attempting to simplifiy some template files I created for other
non-Excel users. I would like to make it easier to have users update
formulas, by having the formulas reference a cell for the tab or file
to pull data from. Eample formula:
COUNTIF(*_'DATAFILE.XLS'_*!$J$2:$J$8000,C4). I would like to repalce
DATAFILE.XLS to reference a cell vaule. This way all formulas would
ppoint to one cell where the user would type in the name of the file to
use.

Hope this makes sense....

Anyone ever try this?

Thanks!


--
mgarcia
------------------------------------------------------------------------
mgarcia's Profile: http://www.excelforum.com/member.php...o&userid=30584
View this thread: http://www.excelforum.com/showthread...hreadid=502342

  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Q: Can a formula reference a cell to get the file name to link to for data?

1. Please try Indirect(A1). Regards.

  #3   Report Post  
Posted to microsoft.public.excel.misc
mgarcia
 
Posts: n/a
Default Q: Can a formula reference a cell to get the file name to link to for data?


I could not seem to get that to work correctly. It seems whatever I put
in as a reference for the file name ('FILENAME.XLS'! - tried
INDIRECT(A1)!) just would not work. The formula thinks the reference
is the file name it's looking for. I may have miss understood that
function as well....


--
mgarcia
------------------------------------------------------------------------
mgarcia's Profile: http://www.excelforum.com/member.php...o&userid=30584
View this thread: http://www.excelforum.com/showthread...hreadid=502342

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Q: Can a formula reference a cell to get the file name to link tofor data?

The function you'd want to use is =indirect() (well, and include the worksheet
name, too.)

But =indirect() won't work with closed files.

If you can open all the files you need, maybe it would be a solution you could
use.

The other bad thing is that =countif() won't work with closed files, either.
But there are other formulas that will.

mgarcia wrote:

I am attempting to simplifiy some template files I created for other
non-Excel users. I would like to make it easier to have users update
formulas, by having the formulas reference a cell for the tab or file
to pull data from. Eample formula:
COUNTIF(*_'DATAFILE.XLS'_*!$J$2:$J$8000,C4). I would like to repalce
DATAFILE.XLS to reference a cell vaule. This way all formulas would
ppoint to one cell where the user would type in the name of the file to
use.

Hope this makes sense....

Anyone ever try this?

Thanks!

--
mgarcia
------------------------------------------------------------------------
mgarcia's Profile: http://www.excelforum.com/member.php...o&userid=30584
View this thread: http://www.excelforum.com/showthread...hreadid=502342


--

Dave Peterson
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
Copy formula down a column does not use correct cell reference brett Excel Discussion (Misc queries) 1 January 9th 06 04:31 AM
Dynamically-linked formula, cell reference in the string 0-0 Wai Wai ^-^ Excel Worksheet Functions 4 December 12th 05 01:36 AM
how to reference external refereces from a list FalconArt Excel Worksheet Functions 7 August 22nd 05 05:17 PM
Reference to One Cell stays the same in Different Formula ISMEGORDO Excel Discussion (Misc queries) 10 June 16th 05 11:13 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 03:21 PM.

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

About Us

"It's about Microsoft Excel"