+ Reply to Thread
Results 1 to 2 of 2

Excel 2016 : Dynamically reference values in closed workbook?

  1. #1
    Registered User
    Join Date
    12-01-2018
    Location
    NJ
    MS-Off Ver
    Office 16
    Posts
    98

    Excel 2016 : Dynamically reference values in closed workbook?

    Hi All -

    I've been researching this question for a while now and all roads are leading to "not possible without VBA" but is there way to reference a closed Workbook dynamically in Excel 2016? The Stack Overflow posts are 3 to 8 years old so hopefully something has changed.

    By dynamic, I want to store the path and file name in cells and then reference them in the formula

    This formula works, but obviously not dynamic :
    Please Login or Register  to view this content.
    I will use VBA if I have to, but trying to do this via formulas instead. Any tips or links is greatly appreciated! Thank you!

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,778

    Re: Excel 2016 : Dynamically reference values in closed workbook?

    Quote Originally Posted by ausable7400 View Post
    Excel 2016? The Stack Overflow posts are 3 to 8 years old so hopefully something has changed.
    Excel 2016 is also 8 years old, and nothing would have changed in that version except bug patches.

    In any case, there have been no updates up through Microsoft 365 that would address this.

    To dynamically reference an external file with a variable path/file name, you need the INDIRECT function. Using INDIRECT to reference another file requires the other file to be open, otherwise you get a #REF! error. VBA is the only way around it. There is an add-in library floating around called morefunc with the function INDIRECT.EXT that will do this but the implementation of that function is VBA.


    Also, please update your profile to show that you are using Excel 2016. Saying "16" doesn't tell us which version you are actually using. Excel 2016, 2019, and 2021 are all identified as 16.0.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Replies: 1
    Last Post: 05-19-2022, 10:26 PM
  2. Dynamically access a closed workbook using Formula
    By wolfdemon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-05-2021, 11:41 AM
  3. [SOLVED] Reference a cell in a closed workbook dynamically
    By mario0102 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-29-2019, 05:15 AM
  4. Replies: 2
    Last Post: 10-03-2017, 06:34 PM
  5. Export data with two Criteria values from closed workbook to closed workbooks VBA
    By julielara in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2016, 01:56 PM
  6. dynamically reference value from another workbook
    By jdmetcalfe in forum Excel General
    Replies: 1
    Last Post: 01-11-2013, 01:43 PM
  7. Replies: 4
    Last Post: 10-27-2011, 02:31 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