Ozgrid Excel Help & Best Practices Forums


XL Templates | XL Add-ins | XL Training | XL Estimating | XL Scheduling | XL Recovery | XL Trading | XL Financial | XL Conversion | XL Charting


+ Reply to Thread
Results 1 to 6 of 6

Thread: INDIRECT function to a closed workbook

  1. #1
    Join Date
    8th February 2005
    Location
    Texas
    Posts
    207

    INDIRECT function to a closed workbook


    Download Active Data For Excel > > DETAILS > >
    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 14:23.

  2. #2
    royUK is offline Publishes Private Messages
    Join Date
    26th January 2003
    Location
    Lincolnshire,UK
    Posts
    12,876

    Re: INDIRECT function to a closed workbook

    INdirect requires the other workbook to be open I believe

  3. #3
    Join Date
    4th July 2004
    Location
    Canada
    Posts
    2,035

    Re: INDIRECT function to a closed workbook

    You can use INDIRECT.EXT if you download and install the free add-in Morefunc.xll...

  4. #4
    Join Date
    2nd November 2005
    Location
    Wessex
    Posts
    1,267

    Re: INDIRECT function to a closed workbook

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

    Bob

  5. #5
    royUK is offline Publishes Private Messages
    Join Date
    26th January 2003
    Location
    Lincolnshire,UK
    Posts
    12,876

    Re: INDIRECT function to a closed workbook

    Found this

  6. #6
    Join Date
    28th January 2003
    Location
    Sutton Coldfield - England
    Posts
    8,695

    Re: INDIRECT function to a closed workbook


    Create Excel dashboards quickly with Plug-N-Play reports.
    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
    Last edited by Will Riley; January 15th, 2006 at 00:34.
    Kind Regards, Will Riley

    Web Presence:
    Personal: The Trouble With Data
    LinkedIn: Will Riley

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Possible Answers

  1. Replies: 2
    Last Post: April 27th, 2008, 10:42
  2. INDIRECT Function/Formula To External Workbook
    By vpoko in forum EXCEL HELP
    Replies: 1
    Last Post: October 6th, 2006, 04:25
  3. Replies: 4
    Last Post: June 11th, 2005, 03:41
  4. indirect on closed files
    By graham griggs in forum EXCEL HELP
    Replies: 2
    Last Post: November 2nd, 2004, 19:31
  5. Replies: 1
    Last Post: October 6th, 2004, 06:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts