+ Reply to Thread
Results 1 to 6 of 6

Reading from different files

  1. #1
    Registered User
    Join Date
    04-30-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    13

    Reading from different files

    I am currently working on a excel file which contains information from all different locations on the computer.
    Is it possible that exile read the information, without opening the other excel files?
    Last edited by KVW; 05-07-2014 at 09:51 PM.

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

    Re: Reading from different files

    Yes, depending what what "read the information" means. You need to provide much more information. Do you just need to refer to cells in the other Excel files, or do something more complicated? A simple reference to a cell in another file is

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    04-30-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Reading from different files

    The excel file that read the information from the other file is always open.
    The sheet must change when somebody else change something in another excel file that is connected to the first file
    Last edited by KVW; 05-08-2014 at 05:54 PM.

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

    Re: Reading from different files

    I'm sorry but I just have to say that it's "Excel", not "exile".

    Are you just doing a straight reference of other data? If so then I have already provided the solution.

    Are you doing something more interesting, like a lookup based on data in the other file? Then the solution is very similar, you just include the file name and sheet name in the cell reference, like in my simpler example.

    This gets more difficult if the files that you want to reference change dynamically. That is, if today you want to reference "May 2014.xlsx" and next month you want that reference to automatically change to "June 2014.xlsx" then we are going to need a bigger thread.

  5. #5
    Registered User
    Join Date
    04-30-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Reading from different files

    My problem is that Excel only show the charts on my file if the source is open.

    this are my code:
    =COUNTIFS(
    'Location]Name'!$J$3:$J$999,
    ">="&TODAY()-30,'Location'!$J$3:$J$999,"<="&TODAY(),
    'Location]Other'!$N$3:$N$999,"Name")

    &

    =SUMIFS(
    'Location]Other'!$O$3:$O$999,
    'Location'!$J$3:$J$999,">="&TODAY()-30,
    'Location]Other'!$J$3:$J$999,"<="&TODAY(),
    'Location]Other'!$N$3:$N$999,"name")

    Both codes work perfectly with the file open, but when the source is not open it is giving ##### and #VALUE!

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

    Re: Reading from different files

    COUNTIFS and SUMIFS require the other file to be open. One way to solve this is with macros. A more straightforward way is to use a "shadow" worksheet. The shadow worksheet has a formula in every cell that starts in A1 with

    =A1

    and so forth with every cell that is used in the other file.

    Then your formulas refer to the "shadow" sheet instead of the other file.

+ 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. Reading from other files
    By papah73 in forum Excel General
    Replies: 2
    Last Post: 01-19-2012, 01:54 PM
  2. Reading in CSV files
    By FactCheckinCuz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2009, 06:13 AM
  3. Reading From HTM Files
    By modytrane in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2009, 07:30 AM
  4. Reading dbf files
    By Luis Verme in forum Excel General
    Replies: 6
    Last Post: 06-30-2005, 09:05 PM
  5. [SOLVED] Reading dbf files
    By Luis Verme in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-30-2005, 09:05 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