Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Cell value as part of a worksheet ref. in Excel

I have a column of invoice numbers.
I have a column of names also taken from a cell on each of those invoice
worksheets
(The invoice worksheets are in another file.)
The formula to obtain the names is:
='D:\Documents and Settings\My Documents\Work\[Filename.xls]SheetName'!$E$2

How can I reference just the SheetName part of the formula to the adjacent
cell which contains the matching invoice number? (So that I can fill down
the formula without having to type it afresh for each cell.)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Cell value as part of a worksheet ref. in Excel

Let A1 contain the first worksheet name
=INDIRECT("'D:\Documents and Settings\My Documents\Work\[Filename.xls]" & A1
& "'!$E$2")

This is INDIRECT( double-quote single-quote...... A1 & double-quote
single-quote ! .... 2 double-quote

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"ones_conscience" wrote in
message ...
I have a column of invoice numbers.
I have a column of names also taken from a cell on each of those invoice
worksheets
(The invoice worksheets are in another file.)
The formula to obtain the names is:
='D:\Documents and Settings\My
Documents\Work\[Filename.xls]SheetName'!$E$2

How can I reference just the SheetName part of the formula to the adjacent
cell which contains the matching invoice number? (So that I can fill down
the formula without having to type it afresh for each cell.)



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Cell value as part of a worksheet ref. in Excel

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.

If that's a problem, then Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/

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

ones_conscience wrote:

I have a column of invoice numbers.
I have a column of names also taken from a cell on each of those invoice
worksheets
(The invoice worksheets are in another file.)
The formula to obtain the names is:
='D:\Documents and Settings\My Documents\Work\[Filename.xls]SheetName'!$E$2

How can I reference just the SheetName part of the formula to the adjacent
cell which contains the matching invoice number? (So that I can fill down
the formula without having to type it afresh for each cell.)


--

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
Search/Match/Find ANY part of string to ANY part of Cell Value TWhizTom Excel Worksheet Functions 0 July 21st 08 08:16 PM
copy part of a worksheet into a worksheet in the same file/keepi. JTB Excel Worksheet Functions 1 September 23rd 06 09:13 AM
how do i superscript part of a cell in MS Excel? allan Excel Discussion (Misc queries) 8 July 20th 05 10:37 PM
how do i superscript part of a cell in MS Excel? allan Excel Discussion (Misc queries) 0 July 13th 05 08:12 PM
worksheet tab name as part of a cell reference cwee Excel Worksheet Functions 4 February 10th 05 04:37 PM


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