+ Reply to Thread
Results 1 to 2 of 2

Hard-coding formula to reference cell from closed workbook

  1. #1
    Registered User
    Join Date
    07-10-2015
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    1

    Hard-coding formula to reference cell from closed workbook

    Apologies that I am not quite good enough at Excel to take advantage of the many answers there are available on this topic- as most of them make reference to VBAs which I am still learning.

    I want to program one database ('Display') to have dynamic references to another database ('Source'), even when the second database is closed. I've been able to do this on some workbooks, but so far I am struggling to do so with the current project.

    On the 'Display' database, I have an array formula that looks up a certain name from the relevant range in the 'Source' database, and then returns a value associated with that name (again from an array). Since there is only one value associated with each name, I have used an averageIF formula instead of VLookup or Match, etc. The formula is essentially as follows:

    {=IFERROR(AVERAGEIF('C:\Users\name\Desktop\folder\[file.xlsx]Sheet1'!$D$1:'C:\Users\name\Desktop\folder\[file.xlsx]Sheet1'!$D$100, C1, 'C:\Users\name\Desktop\folder\[file.xlsx]Sheet1'!$FT$1:'C:\Users\name\Desktop\folder\[file.xlsx]Sheet1'!$FT$100)), "")}

    The formula works fine when the 'Source' workbook is open, but ceases to work once the 'Source' workbook is closed. The Source workbook is large enough (500mb) that having the workbook open is problematic.

    I know I should learn how to use VBAs properly, but failing that- are there any suggestions as to how to make this formula work correctly when the Source workbook is closed?

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Hard-coding formula to reference cell from closed workbook

    Convert that big file into a database, and use a query against it to return the data of interest to a set range. Refresh the query when you want new data.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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. Hard-coding sheets in workbook
    By vio.coman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-29-2014, 03:30 PM
  2. Use cell value as reference to closed workbook?
    By ChrisKustom in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-17-2013, 12:32 AM
  3. Hard Coding a Pasted Workbook
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2011, 04:53 PM
  4. Reference cell in another (closed) WorkBook
    By DP978 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-02-2010, 04:16 PM
  5. Replies: 1
    Last Post: 06-02-2008, 09:36 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