INDIRECT Reference to Named Range in another Workbook

indigowave

New Member
Joined
Aug 5, 2002
Messages
4
I have had to break apart a workbook due to size limitations. It's spreadsheet of baseball statistics, so the I have a named range for each pitcher, and within the range are rows for each performance. On my main sheet, I use a VLOOKUP(todays' date, INDIRECT(pitcher name), 30, true) formula to pull the previous pitching performance. When I moved the sheet of named ranges to its own workbook, I now get #REF errors. Is there a way around this?

Thanks,

Jeff
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
The problem is that I don't want to type the pitcher name in every time. So on the main sheet, say A1 is today's date and B1 is pitcher name, my formula is vlookup(A1,indirect(b1),30,true) to pull the data through the previous day. I just can't get the INDIRECT portion to pull from another workbook.

Jeff
 
Upvote 0
Jeff,

Indirect does not work with a closed workbook – “If the source workbook is not open, INDIRECT returns the #REF! error value” (per Excel’s Help File).

The following threads deal with getting data from closed workbooks (there are several other threads on the same topic - use this Board's Search facility). Hopefully, you will find a solution that fits your requirements.

http://www.mrexcel.com/board2/viewtopic.php?t=67212
http://www.mrexcel.com/board2/viewtopic.php?t=65837&highlight=
http://www.mrexcel.com/board2/viewtopic.php?t=70457&highlight=

HTH

Mike
 
Upvote 0
try...

=vlookup(today(),indirect("book1.xls!"&PitcherNameCell),30,1)
 
Upvote 0
Jon,

In my post above, I refer to Harlan Grove’s “Pull” function in this thread: http://www.mrexcel.com/board2/viewtopic.php?t=70457&highlight=

I also made this warning in the same thread:
Do not try to drag Mr. Grove’s UDF formula down or across the page. On my PC, Excel “freezes” and requires Ctrl-Alt-Delete to get out of it. Similarly, in one application I have a validation dropdown that houses file names of closed workbooks. If I selected a file name that does not exist, the UDF went into an endless loop. In this case, only a hard re-boot worked (Ctrl-Alt-Delete failed).

That said, Mr. Grove’s UDF works very well to extract data from a closed workbook.

Regards,

Mike
 
Upvote 0
for a graphic representation of my solution...
Book5
EFGH
1DatePitcher'sNameFindValue
23/26/2004Thumper0.405
3
4Datainbook6lookslikethis:
53/26/20040.405
63/25/20043.20
Sheet1


works well for me.

formula is:
=VLOOKUP(E2,INDIRECT("Book6.XLS!"&F2),2,0)

HTH
 
Upvote 0
is there anyone online who is =INDIRECT savvy? I am working on a project and need desperate help.
 
Upvote 0

Forum statistics

Threads
1,214,959
Messages
6,122,476
Members
449,087
Latest member
RExcelSearch

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top