+ Reply to Thread
Results 1 to 3 of 3

Reference to other workbook

Hybrid View

SimonCampbell Reference to other workbook 11-17-2023, 03:12 AM
AliGW Re: Reference to other... 11-17-2023, 03:19 AM
SimonCampbell Re: Reference to other... 11-17-2023, 04:19 AM
  1. #1
    Registered User
    Join Date
    10-09-2017
    Location
    Stavanger, Norway
    MS-Off Ver
    O365
    Posts
    78

    Reference to other workbook

    I am building an economic model, the input data (costs etc) is held as named ranges in one workbook, and the cash flow calculation are in an alternative workbook. I am using the =INDIRECT function to reference the input data based on cell values that define the file name, the desired sheet and the named range. It is a given that both files are kept within the same folder (same path). The Formula is

    =INDIRECT("'["&HOME!$D$3&".xlsx]"&HOME!$D$4&"'!"&B8)
    Where HOME!$D$3 = filename, HOME!$D$4 = Sheet name and B8 is the named range.

    This works fine, BUT only when both files are open... If I close the input file the link is ok until I do something in the model ..then I get #REF!.. is there a way to keep the data without using a copy and paste values approach.

    Any "nice" solution will be helpful ... thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,197

    Re: Reference to other workbook

    Please define "nice".

    You'll most likely need VBA - shall I move the thread for you?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-09-2017
    Location
    Stavanger, Norway
    MS-Off Ver
    O365
    Posts
    78

    Re: Reference to other workbook

    "nice"... I suppose I mean simple.. without too many additional processes/functions... I'd like keep it here for the time being.. for a number of reasons I'm trying to avoid VBA at this point..

    thanks

+ 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. Can a hyperlink in a workbook reference a Range name as opposed to a cell reference?
    By aresquare1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-26-2021, 04:10 AM
  2. Replies: 5
    Last Post: 06-17-2014, 10:16 AM
  3. [SOLVED] Locked formula changes reference when rows added to reference sheet in same workbook
    By macrorookie in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-19-2014, 04:08 PM
  4. Replies: 4
    Last Post: 12-01-2013, 03:22 AM
  5. [SOLVED] copy active sheet, create new workbook, name new workbook based on cell reference
    By jm0392 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2012, 07:12 PM
  6. Replies: 2
    Last Post: 05-01-2009, 07:06 PM
  7. Replies: 1
    Last Post: 02-03-2006, 12:00 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