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 Reference external worksheet whose name is in a cell

We'd like to be able to get data from an external worksheet where the
filename is in a cell in the first sheet.

I.e. In File 'Master.xls', cell A1 contains the text 'TruckA' or
'TruckA.xls'. We want cell B1 to return the value from TruckA.xls, cell F2

If we knew the filename, we would write:
=[TruckA.xls]Sheet1!$F$2

But, we'd really like to have the external filename as a variable, so we
would expect to be able to write something like:
=["(A1.xls)"]Sheet1!$F$2
or
=["(A1)"]Sheet1!$F$2

Can this be done? (We are using Excel 2000)

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 644
Default Reference external worksheet whose name is in a cell

=INDIRECT("[" & A1 & ".xls]Sheet1!A1")

HTH

Die_Another_Day
Poly4 wrote:
We'd like to be able to get data from an external worksheet where the
filename is in a cell in the first sheet.

I.e. In File 'Master.xls', cell A1 contains the text 'TruckA' or
'TruckA.xls'. We want cell B1 to return the value from TruckA.xls, cell F2

If we knew the filename, we would write:
=[TruckA.xls]Sheet1!$F$2

But, we'd really like to have the external filename as a variable, so we
would expect to be able to write something like:
=["(A1.xls)"]Sheet1!$F$2
or
=["(A1)"]Sheet1!$F$2

Can this be done? (We are using Excel 2000)

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
Adding a row to worksheet does not update cell references in another. blausen Excel Worksheet Functions 5 February 25th 06 09:14 PM
Reference External Worksheets & Protect Worksheet / Workbook DGM Excel Worksheet Functions 0 January 9th 06 10:31 PM
How to reference cell in other worksheet JimDandy Excel Worksheet Functions 4 December 17th 05 06:41 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Cell Reference Math Ralph Howarth Excel Worksheet Functions 0 January 26th 05 06:27 PM


All times are GMT +1. The time now is 06:57 AM.

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"