Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default referring to a cell containing a file name

Can you tell me if this is possible?

Instead of putting the file name in the original cell, I want to
reference it.
For example, cell B10 contains "ABC.xls"

But in A1 I want to refer to it like this:
=SUM([B10]Sheet5!A5:A10)

Do I need to add quotation marks or anything? It doesn't seem to like
this...

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default referring to a cell containing a file name

Use INDIRECT() to splice cell contents:


=SUM(INDIRECT("[" & B10 & "]Sheet5!$a$5:$a$10"))

--
Gary's Student


" wrote:

Can you tell me if this is possible?

Instead of putting the file name in the original cell, I want to
reference it.
For example, cell B10 contains "ABC.xls"

But in A1 I want to refer to it like this:
=SUM([B10]Sheet5!A5:A10)

Do I need to add quotation marks or anything? It doesn't seem to like
this...

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default referring to a cell containing a file name

The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/

That includes =indirect.ext() that may help you.

wrote:

Can you tell me if this is possible?

Instead of putting the file name in the original cell, I want to
reference it.
For example, cell B10 contains "ABC.xls"

But in A1 I want to refer to it like this:
=SUM([B10]Sheet5!A5:A10)

Do I need to add quotation marks or anything? It doesn't seem to like
this...

Thanks


--

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
Autoname a save as file from a cell in a read only file g4rod Excel Discussion (Misc queries) 2 October 6th 06 01:16 PM
Help with this conditional IF statement C-Dawg Excel Discussion (Misc queries) 3 May 15th 06 06:01 PM
File name equal cell contents cxlough41 Excel Discussion (Misc queries) 0 January 3rd 06 10:47 PM
Weird File Open/Save As Behavior [email protected] Excel Discussion (Misc queries) 0 December 9th 05 02:26 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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