+ Reply to Thread
Results 1 to 20 of 20

Substitute for INDIRECT with closed files

  1. #1
    Registered User
    Join Date
    03-22-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Substitute for INDIRECT with closed files

    Hi!
    I've been using the INDIRECT() function for various files that follow a pattern with their filenames, but the thing is I would need to keep them all open for them to display the correct values and I really can't do that.

    I was wondering if there was some way I could get around that or if I was stuck with opening them all every single time.

    Thanks in advance!
    Last edited by Jumbala; 03-25-2010 at 03:26 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Substitute for INDIRECT with closed files

    Regads your general options see: http://www.dailydoseofexcel.com/arch...sed-workbooks/

    This topic has been covered numerous times before and I'm afraid I've nothing new to add - if you search the board for INDIRECT.EXT, Harlan Grove's PULL function etc you will find other threads which have more detail.

  3. #3
    Registered User
    Join Date
    03-22-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Substitute for INDIRECT with closed files

    Thanks for trying to help, DonkeyOte... I tried everything I could using INDIRECT.EXT, but it doesn't seem to be working when the workbook is closed... It works when it's open, though.

    Basically, that means I'm stuck with exactly the same problem.

    Any idea why? The error the function is returning is a #REF error.

  4. #4
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Substitute for INDIRECT with closed files

    Hi,

    Have you downloaded and installed the MoreFunc add-in from Laurent' s site
    http://xcell05.free.fr/english/index.html

    The design for Indirect.ext is indeed to work for closed workbooks ...

    HTH

  5. #5
    Registered User
    Join Date
    03-22-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Substitute for INDIRECT with closed files

    Yes, I downloaded and installed it... I trying substituting one of my INDIRECT functions with INDIRECT.EXT and it only works when the other workbook is open, which proves it is installed right (I guess?).

    Unless I'm using it wrong and there are some parameters I need to add or something, I can't see why it's working with open workbooks but not with closed workbooks.

  6. #6
    Registered User
    Join Date
    03-22-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Substitute for INDIRECT with closed files

    I'm going to try to explain what I think the error might be since Google isn't being too helpful with my problem...

    I was using the regular INDIRECT formula so I could open different workbooks that were following a given pattern (Week 1.xml, Week 2.xml, etc.)

    So the regular INDIRECT formula to get the cells in the range $A$3:$J$41 in the worksheet "Table x" in the workbook "Table y"

    Please Login or Register  to view this content.
    So I read on some sites that you have to use the absolute path instead of the relative path to have INDIRECT.EXT work with closed workbooks... I tried

    Please Login or Register  to view this content.
    If the problem really is the absolute path thing, what is wrong with my code?

    Thanks a lot in advance for the replies!

  7. #7
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Substitute for INDIRECT with closed files

    You are absolutely right ...

    The very exact complete path has to be used for the function to work ...

    HTH

  8. #8
    Registered User
    Join Date
    03-22-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Substitute for INDIRECT with closed files

    All right... So how do I write it to make it work with the formula I'm using? Like in my last post?

    Are there some misplaced apostrophes or something?

  9. #9
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Substitute for INDIRECT with closed files

    An atttempt ...
    because I cannot guess about the blanks in the file name ... about the sheet name in the file ...

    Please Login or Register  to view this content.
    HTH
    Last edited by JeanRage; 03-25-2010 at 02:53 AM.

  10. #10
    Registered User
    Join Date
    03-22-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Substitute for INDIRECT with closed files

    I absolutely don't get it... With the full path, I can make it work with the INDIRECT.EXT function as long as the workbook is open, but as soon as a try with it closed, I get that #REF error again....

    Here's the example I was trying:
    Please Login or Register  to view this content.
    Which would translate to:

    Please Login or Register  to view this content.
    Can anyone see why it won't work with closed workbooks? Is it about the apostrophes? (')

    I really can't seem to find what's wrong with my code...

  11. #11
    Registered User
    Join Date
    03-22-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Substitute for INDIRECT with closed files

    I found a problem with my function... It seems like the INDIRECT.EXT function doesn't work with xml files... So I just saved my workbooks as .xls and it solved the problem for the formulas that didn't use VLOOKUP

    For those that do, though, I get a #N/A error, but when the workbook is open, it works flawlessly...

    Any help?

    Please Login or Register  to view this content.
    Which translates to:

    Please Login or Register  to view this content.
    Last edited by Jumbala; 03-25-2010 at 09:57 AM.

  12. #12
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Substitute for INDIRECT with closed files

    Oops ...Sorry I did not notice your file extension ... thought you were dealing with xls ...

  13. #13
    Registered User
    Join Date
    03-22-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Substitute for INDIRECT with closed files

    Quote Originally Posted by JeanRage View Post
    Oops ...Sorry I did not notice your file extension ... thought you were dealing with xls ...
    No problem at all! But would you know why it's not working with the VLOOKUP function as shown in my last post?

  14. #14
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Substitute for INDIRECT with closed files

    Have a try with
    Please Login or Register  to view this content.
    You might need to use Harlan Grove's Pull function for the Vlookup() ...
    Last edited by JeanRage; 03-25-2010 at 10:41 AM.

  15. #15
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Substitute for INDIRECT with closed files

    For your information, a good recap is available ...
    http://www.dailydoseofexcel.com/arch...sed-workbooks/

    HTH

  16. #16
    Registered User
    Join Date
    03-22-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Substitute for INDIRECT with closed files

    Quote Originally Posted by JeanRage View Post
    Have a try with
    Please Login or Register  to view this content.
    You might need to use Harlan Grove's Pull function for the Vlookup() ...
    I had read on Harlan Grove's Pull function and tried finding it on the internet but it seems like all the links to download it are down (or the link to the code in the link you gave me gives a "temporary server error" that has been lasting since I first went to that link when it was posted earlier in this thread), do you know of a place where I could get it?
    Last edited by Jumbala; 03-25-2010 at 11:13 AM.

  17. #17
    Registered User
    Join Date
    03-22-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Substitute for INDIRECT with closed files

    Okay, seems like I have found the code somewhere, but I have no idea how to "install" it.

  18. #18
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Substitute for INDIRECT with closed files

    As far as I can remember, Harlan' s code is a function ...
    So you just need to copy the code into a standard module ...
    and use in your sheet:
    Please Login or Register  to view this content.
    HTH

  19. #19
    Registered User
    Join Date
    03-22-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Substitute for INDIRECT with closed files

    Thanks a lot JeanRage, it worked flawlessly!

    I really appreciate your help and patience!

  20. #20
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Substitute for INDIRECT with closed files

    Glad you have managed to fix your problem ...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1