+ Reply to Thread
Results 1 to 3 of 3

Using INDEX() function and named range to get data from the source file

  1. #1
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    Using INDEX() function and named range to get data from the source file

    Hello,

    Not sure my approach of fetching data from an external file is an efficient way. In the source file, I defined the named ranges. Then in the workbook, I used the INDEX() function and those named ranges to get data from the external source file. For example, =INDEX(SourceFile!Range1, 1) is to get the first cell in the named range "Range1".

    Due to the size of the source file and workbook (both have 5000 rows and 100 columns, over 50MB), I found this approach may have efficiency problem, as I had to wait over 15 minutes to get the file updated and crashed in a few occasions. Is this because the file size is too large? Or the INDEX() function is not efficient?

    I appreciate your great help for this problem.

  2. #2
    Registered User
    Join Date
    07-19-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Using INDEX() function and named range to get data from the source file

    Hi,

    I assume first that you have both files open when you are attempting to refresh the data. Updating external links with a closed file is incredibly slow. Also, the use of the INDEX function may also be slowing you down, but it really depends on how your data is presented and how you expect to pull it through. You are trying to link to 5 million pieces of data here, so unfortunately it is going to take Excel a long time to deal with this, regardless of the approach that you take. Could you not explore using an Access data base to store the data, and then pull the required information into the spreadsheet using either a Pivot-table or a data-table for example? This would generally be a better approach.

    I would also question why you need to link to 5 million pieces of data in the first place? Could you not perform summary activities within the source workbook, and then link to the summaries instead? This would certainly help.

    I appreciate that this doesn't really answer your query, but I do think a fundamental redesign is probably in order for this to work efficiently.

    Kind regards,
    Simon.

  3. #3
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    Re: Using INDEX() function and named range to get data from the source file

    Is there more idea?

+ 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. INDEX/MATCH function eventually changed the location of the source file
    By seimeion1208 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-30-2013, 07:07 AM
  2. Named range lookup using Index/Indirect/Match Function calls in Macro
    By sgopan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2013, 07:51 PM
  3. Y Axis data source changes based on the Named range listed in Dropdown
    By aravindhan_31 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 11-09-2012, 12:43 AM
  4. [SOLVED] Assigning named Range as Pivot Table Source Data using Macro
    By Melovalicious in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2012, 05:50 AM
  5. Using INDIRECT to put a Dynamic Named Range in a chart Data Source
    By mgaworecki in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-01-2012, 07:35 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