+ Reply to Thread
Results 1 to 4 of 4

Referencing closed workbooks in an INDIRECT like fashion

  1. #1
    Registered User
    Join Date
    12-20-2011
    Location
    U.S.A.
    MS-Off Ver
    Excel 2010
    Posts
    17

    Referencing closed workbooks in an INDIRECT like fashion

    I have a folder of documents that are excel sheets that have been filled out and named various things. The data in those sheets is not organized as a spreadsheet, it's more like a form that people fill out. As a result I want to create a central spreadsheet that will organize all the data. I'd rather not copy/paste each form into the master.

    What I was thinking was that I would use INDIRECT for this. On the forms the various pieces of data I want to grab are always in the same cells on the same sheets, although the names of the workbooks vary. I thought I would create a column for each piece of data I want from the form, then in each column I would write a formula that referenced the first column, which would contain the filename to look in.

    So something like this.

    File Name Data Point 1
    Form1.xlsx =indirect("'C:\Documents\Temp Docs\["& A2 &"]Worksheet'!$B$2")
    With the idea being that reference looks at the first column, retrieves the name of the file and populates the cell with the data from the cell in the other file. I could then have a large number of cells, all of which reference other cells in the documents, and have an easy way of updating whenever a new document was added.

    Unfortunately this doesn't work (I get #ref errors), and looking around the internet it looks like INDIRECT will not work with closed workbooks. I know this could be better solved through developing an access database, but I'm restricted to excel right now for non-technical reasons. Is there a way to do this in excel? My issue is mainly that a large number of these forms get filled out and added to a folder, and I'd rather avoid manual solutions (such as updating each formula by hand or copy the sheets into a central workbook).

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Referencing closed workbooks in an INDIRECT like fashion

    Can you use (free) 3rd party software? if so, Morefunc contains the very useful INDIRECT.EXT which works on closed files. It works with Excel 2010, too. But there's a fix you have to apply. If you CAN use 3P stuff, I'll find the URLs for you.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    12-20-2011
    Location
    U.S.A.
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Referencing closed workbooks in an INDIRECT like fashion

    Looks like I can't without heavy difficulty (corporate environment, several layers of approval, etc.) so if it can be solved through formulas or VBA that would be a lot easier. At this point I'm just considering copying all the formulas and using a Replace (not a formula, really doing a find and replace) with the proper filenames. It's annoying and manual but would work. I just feel like there must be something better.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Referencing closed workbooks in an INDIRECT like fashion

    only several layers... you're lucky!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using Indirect Across Multiple Closed Workbooks
    By robgardner15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2011, 05:09 AM
  2. referencing many closed workbooks
    By freud1 in forum Excel General
    Replies: 6
    Last Post: 11-09-2009, 07:20 AM
  3. Referencing Closed workbooks...Help!
    By chris100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2006, 12:50 PM
  4. INDIRECT and Named Ranges referencing closed workbook
    By gpie in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-06-2005, 07:05 PM

Tags for this Thread

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