LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Use cell references in external queries

You can use the INDIRECT function to do this, but it will only work
with open workbooks. As such, the path is not needed, but the filename
is. Suppose you have filename.xls in A1, Sheet Name in B1, and cell
reference (eg A42) in C1 - then your formula would be:

=INDIRECT("'["&A1&"]"&B1&"'!"&C1)

But as I say, filename.xls will have to be open for this to work.

Hope this helps.

Pete

On May 17, 3:35*pm, johnb49 wrote:
When creating a link to a cell in another workbook, I want to make the query
dependent on the contents of a cell in the destination worksheet. *For
example, I want to specify the path, the tab and the workbook in cells and
create references to these cells in the external link. *Is this possible?


 
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
Excel Inport External Data - new queries Lozza65 Excel Worksheet Functions 1 November 26th 07 10:55 AM
Excel 2002 External Data Queries and UNC !HELP! KayC Excel Discussion (Misc queries) 0 April 23rd 07 10:33 AM
External cell references using INDIRECT & ADDRESS Conan Kelly Excel Worksheet Functions 1 December 28th 06 06:05 PM
Cell References and External Data Scott Excel Worksheet Functions 1 April 1st 05 07:31 PM
Excel 2003 This Workbook contains queries to external data Puzzled of Springburn Excel Discussion (Misc queries) 0 February 8th 05 03:21 PM


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