+ Reply to Thread
Results 1 to 8 of 8

Dynamic Name Range to a closed workbook

  1. #1
    Registered User
    Join Date
    07-04-2009
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    36

    Dynamic Name Range to a closed workbook

    Hi

    I need to use sumproduct in getting certain data I need from a closed workbook and the range changes depending on what is the last row defined in my Closed Workbook sheet in the example I attached.
    I know indirect doesn't work with a closed workbook, and I try certain other methods which doesn't give me what I need as well...

    Is there any ways I can make this, 'Closed workbook'!$A$1:$A$9, dynamic and still work on a closed workbook?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,252

    Re: Dynamic Name Range to a closed workbook

    There are no formulas in your sample file and column A is text (to columns?) so I am not sure what is required.

  3. #3
    Registered User
    Join Date
    07-04-2009
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    36

    Re: Dynamic Name Range to a closed workbook

    I'm so sorry! I attached the wrong file.

    This is the file.

    I like to make all the name range - 'Closed Workbook'!$A$3:$A$11, 'Closed Workbook'!$B$3:$B$11 and 'Closed Workbook'!$C$3:$C$11 dynamic.

    Using Mid and Cell together with Match("Last Row", $A:$A, 0) I would be able to obtain the path of my closed workbook but using indirect then would not work with the workbook closed.

    Thank you!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,252

    Re: Dynamic Name Range to a closed workbook

    This is an example of a dynamic named range in column I on sheet "Parameters"

    =OFFSET(Parameters!$I$2,0,0,COUNTA(Parameters!$I:$I)-1,1)

    Is this what you need?

  5. #5
    Registered User
    Join Date
    07-04-2009
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    36

    Re: Dynamic Name Range to a closed workbook

    Would you have the excel file with the sheet "Parameters" ?

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,252

    Re: Dynamic Name Range to a closed workbook

    See attached .....
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-04-2009
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    36

    Re: Dynamic Name Range to a closed workbook

    Thanks! But I read that Offset function doesn't work referencing to a closed workbook.
    Would there be any other function that will work when my main data workbook is closed?

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,252

    Re: Dynamic Name Range to a closed workbook

    I am not aware of any other method. Is the Closed Workbook range "infinite"? If not, why not fix the range at a sensible maximum? Why does it have to be dynamic?

+ 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. [SOLVED] Cannot refer to a dynamic range in a closed workbook
    By BNCOXUK in forum Excel General
    Replies: 7
    Last Post: 01-07-2014, 09:56 AM
  2. [SOLVED] Index Match to closed workbook - not dynamic?
    By brad999 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-01-2013, 08:19 AM
  3. [SOLVED] Sum dynamic range in closed workbook using address/match
    By jeffr27 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-14-2013, 10:15 AM
  4. Copy dynamic range from closed workbook
    By RedWing in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2011, 07:11 PM
  5. refer to dynamic range in closed workbook with ADO
    By MattShoreson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2005, 06:26 AM

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