+ Reply to Thread
Results 1 to 9 of 9

Referencing table in another workbook

  1. #1
    Registered User
    Join Date
    05-21-2019
    Location
    Tennessee
    MS-Off Ver
    Office 365
    Posts
    8

    Referencing table in another workbook

    Hello: I have a formula in a CurrentSheet that is looping through data looking at the headers of a data table (data_table) in the same workbook for index and match. That code works fine and is below. However, I need to make it refer to another data table in another workbook for the data. That table is named the same and has the same header structure. I've tried a ton of different ideas to make the reference work, but so far no luck.

    Any help would be appreciated!

    I posted this on another forum but couldn't get a solution!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Referencing table in another workbook

    You can't use structured reference to closed workbook.

    Have a read of...
    https://support.microsoft.com/en-ae/...es-display-ref

    You could use range reference (i.e. address reference rather than structured table reference).
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    05-21-2019
    Location
    Tennessee
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Referencing table in another workbook

    Thank you. But the workbook where the data table resides is open.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Referencing table in another workbook

    Then try adding workbook reference in front of table reference.

    Ex:
    ='[WorkbookName.xlsx]SheetName'!TableName[ColumnName]
    Last edited by CK76; 09-30-2019 at 02:00 PM.

  5. #5
    Registered User
    Join Date
    05-21-2019
    Location
    Tennessee
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Referencing table in another workbook

    Thanks again. But that's where I'm stuck -- I can't get the data file syntax correct and I've tried a a bunch of different options.

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Referencing table in another workbook

    If you follow above syntax. It should work.
    Ex:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-21-2019
    Location
    Tennessee
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Referencing table in another workbook

    Thank you! Works perfectly.

  8. #8
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Referencing table in another workbook

    You are welcome

    If your issue is resolved. Please mark the thread as solved, using thread tools found at top of your initial post.

  9. #9
    Registered User
    Join Date
    05-21-2019
    Location
    Tennessee
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Referencing table in another workbook

    Will do. Thanks again.

+ 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. Referencing a workbook with variable name and run macros in that workbook
    By dode in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2016, 03:39 AM
  2. Moving worksheet with named ranges to new workbook without referencing old workbook
    By madcaplaughs79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2014, 07:54 PM
  3. [SOLVED] Index Match Function Within One Workbook Referencing Cells in Another workbook error
    By Hackboss007 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-18-2014, 12:06 PM
  4. [SOLVED] Trouble copying data from closed workbook into active workbook, referencing help
    By lepperga in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-20-2013, 01:48 PM
  5. Create a Pivot Table referencing the data from another workbook (VBA)
    By kenjiventurina in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2013, 05:24 AM
  6. Replies: 8
    Last Post: 09-16-2013, 11:01 PM
  7. Replies: 2
    Last Post: 04-24-2009, 03:45 PM

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