#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
elrussell
 
Posts: n/a
Default index/match


Hi - this works just fine for one named sheet in the other workbook:

=INDEX([x.xls]BranfordBowen!$A$1:$C$7, MATCH("Discussion
Questions",[x.xls]BranfordBowen!$A$1:$A$7,), MATCH("(EDTC/560-
MABJ01IJF3)",[x.xls]BranfordBowen!$A$1:$C$1,))

I have one workbook reading another workbook. What I need to do is
modify this function to accept a referenced cell's content. The
function is currently hand-coded to read a sheet named "BranfordBowen"
(for example) but I need it to accept the contents of a cell that has
the name of another worksheet "FredSmith", for example. The 'local'
cell with the name is b121

I know I need to edit this to something such as "[x.xls]"&$B$121 ...
but I am missing something!

Thanks in advance!


--
elrussell
------------------------------------------------------------------------
elrussell's Profile: http://www.excelforum.com/member.php...o&userid=31020
View this thread: http://www.excelforum.com/showthread...hreadid=506894

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default index/match

Hi!

In order to do this the other file *MUST* be open. If the other file is not
open you'll get #REF! errors. Still interested?

Biff

"elrussell" wrote
in message ...

Hi - this works just fine for one named sheet in the other workbook:

=INDEX([x.xls]BranfordBowen!$A$1:$C$7, MATCH("Discussion
Questions",[x.xls]BranfordBowen!$A$1:$A$7,), MATCH("(EDTC/560-
MABJ01IJF3)",[x.xls]BranfordBowen!$A$1:$C$1,))

I have one workbook reading another workbook. What I need to do is
modify this function to accept a referenced cell's content. The
function is currently hand-coded to read a sheet named "BranfordBowen"
(for example) but I need it to accept the contents of a cell that has
the name of another worksheet "FredSmith", for example. The 'local'
cell with the name is b121

I know I need to edit this to something such as "[x.xls]"&$B$121 ...
but I am missing something!

Thanks in advance!


--
elrussell
------------------------------------------------------------------------
elrussell's Profile:
http://www.excelforum.com/member.php...o&userid=31020
View this thread: http://www.excelforum.com/showthread...hreadid=506894



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
elrussell
 
Posts: n/a
Default index/match


Biff - thanks for the response. Yes, both files are open and in the same
folder. The file (x.xls) that I am trying to read "from" was opened
first.

Here is my latest "try" - it might explain better my efforts...

=INDEX("'[x.xls]"&G12&"'!"&$A$1:$C$60, MATCH("Discussion Questions -
week 3","'[x.xls]"&G12&"'!"&$A$1:$A$60,0),
MATCH("(EDTC/560-MABJ01IJF3)","'[x.xls]"&G12&"'!"&$A$1:$C$1,0))

the cell G12 contains BradfordBowen

I am getting a #VALUE error

Thanks again!


--
elrussell
------------------------------------------------------------------------
elrussell's Profile: http://www.excelforum.com/member.php...o&userid=31020
View this thread: http://www.excelforum.com/showthread...hreadid=506894

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default index/match

Why did your formula references change from your original post? <g

Try this:

=INDEX(INDIRECT("'[x.xls]"&G12&"'!$A$1:$C$60"),MATCH("Discussion Questions -
week
3",INDIRECT("'[x.xls]"&G12&"'!$A$1:$A$60"),0),MATCH("(EDTC/560-MABJ01IJF3)",INDIRECT("'[x.xls]"&G12&"'!$A$1:$C$1"),0))

As soon as file x.xls is closed and the file that contains this formula
calculates, the formula will return #REF!.

Biff

"elrussell" wrote
in message ...

Biff - thanks for the response. Yes, both files are open and in the same
folder. The file (x.xls) that I am trying to read "from" was opened
first.

Here is my latest "try" - it might explain better my efforts...

=INDEX("'[x.xls]"&G12&"'!"&$A$1:$C$60, MATCH("Discussion Questions -
week 3","'[x.xls]"&G12&"'!"&$A$1:$A$60,0),
MATCH("(EDTC/560-MABJ01IJF3)","'[x.xls]"&G12&"'!"&$A$1:$C$1,0))

the cell G12 contains BradfordBowen

I am getting a #VALUE error

Thanks again!


--
elrussell
------------------------------------------------------------------------
elrussell's Profile:
http://www.excelforum.com/member.php...o&userid=31020
View this thread: http://www.excelforum.com/showthread...hreadid=506894



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
Index/Match from multiple columns hgopp99 Excel Worksheet Functions 5 January 21st 06 06:13 PM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM
Index/Match Help singsunnyboy7 Excel Discussion (Misc queries) 1 July 26th 05 10:18 PM
Index/Match to look up a value in one workbook and insert it into. Jean Marie Excel Discussion (Misc queries) 2 February 22nd 05 01:53 PM
Index/Match Help Ben Excel Worksheet Functions 6 December 2nd 04 01:01 PM


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