INDIRECT function to a closed workbook - Excel Help & Excel Macro Help
SEARCH ENTIRE SITE LOADING..

OZGRID Excel Help & Excel Best Practices Forums

Information Helpful? Why Not Donate.

SPECIALS PAGE FOR BARGAINS | BUILD YOUR GOLF SWING | FREE CUSTOM FUNCTIONS ADD-IN


Download Active Data For Excel Demo


Go Back Excel Help & Excel Macro Help > HELP FORUMS > EXCEL HELP
HOME Register Forum Help Calendar Search For Today's Posts Mark Forums Read

Reply

INDIRECT function to a closed workbook

ANSWERS TO SIMILAR QUESTIONS
Copy Range From Closed File & Paste To Closed WorkbookINDIRECT Function/Formula To External WorkbookUsing Dynamic VLOOKUP with external, closed workbooks (not INDIRECT)indirect on closed filesMaking a custom function work when the associated workbook is closed



Javascript DHTML Drop Down Menu Powered by dhtml-menu-builder.com

Create Excel dashboards quickly with Plug-N-Play reports.


 
Thread Tools Search this Thread
Old January 14th, 2006
SerenityNetwork's Avatar
SerenityNetwork SerenityNetwork is offline
Senior Member
 
I'm a Spammer: NO
MS Office Version: 2003
Op System: Windows XP
Assumed Experience: Average (know many formulas)
Join Date: 8th February 2005
English is 1st Language: Yes
Location: Texas
Posts: 203 -- Threads: 44
INDIRECT function to a closed workbook

I would like to use the INDIRECT function, but have the reference be a closed workbook. For example:
I have a worksheet "summary.xls" with the formula: {= SUM(IF(LEFT(DC-052.xls'!DC_RANGE,2)=LEFT($A3,2),1,0))} where DC_RANGE is a named range, and it works fine.
When I close the DC-052.xls then the formula in summary.xls becomes: {=SUM(IF(LEFT('C:\Documents and Settings\Me\Desktop\DC-052.xls'!DC_RANGE,2)=LEFT($A3,2),1,0))} and it still works fine.

I would like to replace the path and worksheet with an INDIRECT function. I intend to build the path, worksheet name, and named range from a formula.

However when I do this, it only works if both worksheets are open. When I close DC-052.xls then the formula in summary.xls gives me a #ref error. Even when I simply paste 'C:\Documents and Settings\Me\Desktop\DC-052.xls'!DC_RANGE into the cell the INDIRECT function references, I still get the error when the DC-052.xls workbook is closed.

I'm stumped. I'm guessing it might be the apostrophe at the beginning of the text string is causing problems, but I don't know for sure if this is it and/or how to get around the problem.

Any help will be greatly appreciated.

Thanks,
Andrew

Last edited by SerenityNetwork : January 14th, 2006 at 15:23.
Print [Post / Thread] Reply With Quote
Old January 14th, 2006
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
royUK royUK is offline
Publishes Private Messages
 
I'm a Spammer: YES
MS Office Version:
Op System: Windows XP
Assumed Experience: Poor (know the very basics)
Join Date: 26th January 2003
English is 1st Language:
Location: Lincolnshire,UK
Posts: 12,877 -- Threads: 67
Re: INDIRECT function to a closed workbook

INdirect requires the other workbook to be open I believe
Print [Post / Thread] Reply With Quote
Old January 14th, 2006
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
Domenic Domenic is offline
OzMVP
 
I'm a Spammer: NO
MS Office Version: Other
Op System: MacOS
Assumed Experience: Average (know many formulas)
Join Date: 4th July 2004
English is 1st Language: Yes
Location: Canada
Posts: 2,032 -- Threads: 3
Re: INDIRECT function to a closed workbook

You can use INDIRECT.EXT if you download and install the free add-in Morefunc.xll...
Print [Post / Thread] Reply With Quote
Old January 15th, 2006
Bob Phillips's Avatar
Bob Phillips Bob Phillips is offline
Long Term Member
 
I'm a Spammer:
MS Office Version: 2000, 2003, 2007
Op System: Windows XP Pro
Assumed Experience: Not for me to say
Join Date: 2nd November 2005
English is 1st Language: Yes
Location: Wessex
Posts: 1,267 -- Threads: 0
Re: INDIRECT function to a closed workbook

You could also do A google search for Harlan Grove's PULL Function.
__________________
HTH

Bob
Print [Post / Thread] Reply With Quote
Old January 15th, 2006
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
royUK royUK is offline
Publishes Private Messages
 
I'm a Spammer: YES
MS Office Version:
Op System: Windows XP
Assumed Experience: Poor (know the very basics)
Join Date: 26th January 2003
English is 1st Language:
Location: Lincolnshire,UK
Posts: 12,877 -- Threads: 67
Re: INDIRECT function to a closed workbook

Found this
Print [Post / Thread] Reply With Quote
Old January 15th, 2006
Will Riley's Avatar
Will Riley Will Riley is offline
Jedi
 
I'm a Spammer: NO
MS Office Version: Other
Op System: Other
Assumed Experience: Expert (I wont be needing help)
Join Date: 28th January 2003
English is 1st Language: Yes
Location: Sutton Coldfield - England
Posts: 8,686 -- Threads: 165
Re: INDIRECT function to a closed workbook

Quote:
Originally Posted by SerenityNetwork
I would like to use the INDIRECT function, but have the reference be a closed workbook.


Roy's right. You can't use INDIRECT with closed workbooks.

Laurent Longre's Morefunc addin has a version that can be used on closed workbooks though, which you can download HERE

Edit: didn't see Domenic's reply
__________________
Kind Regards, Will Riley

Web Presence:
Personal: The Trouble With Data
Business: Stelvio IT Consulting
LinkedIn: Will Riley

Last edited by Will Riley : January 15th, 2006 at 01:34.
Print [Post / Thread] Reply With Quote
Reply Lifetime Upgrade To Ad Free Styles

   « PREVIOUS create a non-accessible workbook || Private Sub ListBox1_KeyPress when KeyAscii =13 "CONTROL, ENTER" NEXT »
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +9. The time now is 01:14.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Ozgrid is Not Associated With Microsoft. Ozgrid Retains the Rights to ALL Posts and Threads