Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Linking Workbooks using file names in a range

Looking to sum up several workbooks into one master consolidated book.
Want to have the list of names of files to sum up taken from a range,
like:

Col A Col B
FILE1 Actual file1 name here (could change)
FILE2 Actual file2 name here (could change)
FILE3 Actual file3 name here (could change)

The formula to sum the data is in each Cell on the master book (and is
the SAME Cell as on the individual sheets, just taking the data from
each one and summing it).

Would look something like this:

='C:\[FILE1.xls]FINANCE'!$E9+'C:\[FILE2.xls]FINANCE'!$E9'C:\[FILE3.xls]
FINANCE'!$E9

The File names could change but it shouldn't matter because the link is
looking for the range names FILE1, FILE2, FILE3.

It doesn't seem possible to get the links to work when the source is a
range name.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Linking Workbooks using file names in a range

check out indirect()
=indirect("'C:\["&B1&"]Finance'!$E9+...

"Mark T" wrote:

Looking to sum up several workbooks into one master consolidated book.
Want to have the list of names of files to sum up taken from a range,
like:

Col A Col B
FILE1 Actual file1 name here (could change)
FILE2 Actual file2 name here (could change)
FILE3 Actual file3 name here (could change)

The formula to sum the data is in each Cell on the master book (and is
the SAME Cell as on the individual sheets, just taking the data from
each one and summing it).

Would look something like this:

='C:\[FILE1.xls]FINANCE'!$E9+'C:\[FILE2.xls]FINANCE'!$E9'C:\[FILE3.xls]
FINANCE'!$E9

The File names could change but it shouldn't matter because the link is
looking for the range names FILE1, FILE2, FILE3.

It doesn't seem possible to get the links to work when the source is a
range name.

Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default Linking Workbooks using file names in a range

On Jul 13, 1:04 pm, bj wrote:
check out indirect()
=indirect("'C:\["&B1&"]Finance'!$E9+...

....

You forgot the closing double quote and the right parenthesis. But
more fundamentally, INDIRECT doesn't work unless the other files are
open. Excel can't load multiple files with the same base filename, so
OPEN files NEVER need their drive/directory paths preceding their base
filenames.

If the OP needs the drive/directory paths, then the OP's files aren't
open when being accessed, and in that case INDIRECT won't work.

For alternative workarounds, see

http://groups.google.com/group/micro...443753560f0075

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
Linking to Workbooks with Constantly Changing Names Michael in Texas Excel Discussion (Misc queries) 5 January 10th 07 11:11 PM
Linking Cells to a file that changes names Carlmac4 Excel Discussion (Misc queries) 1 October 9th 06 07:01 PM
How to show file path in formual bar when linking workbooks? Mascot Excel Discussion (Misc queries) 2 September 12th 06 04:17 PM
Why do minimized workbooks in Excell not show file names? george Excel Discussion (Misc queries) 1 May 26th 06 10:31 PM
Why do minimized workbooks in Excell not show file names? george Excel Discussion (Misc queries) 0 May 26th 06 09:25 PM


All times are GMT +1. The time now is 05:30 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"