+ Reply to Thread
Results 1 to 6 of 6

Collecting data from multiple closed excel files based on criteria - New to EXCEL advanced

  1. #1
    Registered User
    Join Date
    07-03-2013
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2013
    Posts
    3

    Collecting data from multiple closed excel files based on criteria - New to EXCEL advanced

    I'm new to Excels advanced feature so apologies if my question is a noob one.
    Similar task might have been addressed already, but I couldn't find a solution to my specific issue.

    I am trying to collect data from multiple files:
    - All files are in the same folder
    - Files share the same naming convention (report 01-07-2015.xlsx, one for each day of the month)
    - The sheet I need data from are the same name (Report) and structure is also same in all files.
    - From each files' 'Report' sheet, I need the values of C1,D1,E1,F1 cells, populated into different rows in the destination file, based on a reference value(A5) from the destination file.
    - All sheets contains the reference value I want to refer to from my destination file.

    I've tried with Vlookup, but I don't want the files to be opened... Found also a 3rd party add-on (morefunc - indirect.ext function for the file names) that would be perfect, but since I am using Excel 2013 64bit, I cannot use that.

    Any suggestion would be much appreciated.
    Thank you!

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Collecting data from multiple closed excel files based on criteria - New to EXCEL adva

    Quote Originally Posted by zoleegee View Post
    I've tried with Vlookup, but I don't want the files to be opened
    Vlookup works also with closed files. You just need to include whole path to file in address, like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Collecting data from multiple closed excel files based on criteria - New to EXCEL adva

    PS. You may also like this: http://www.rondebruin.nl/win/s3/win008.htm

  4. #4
    Registered User
    Join Date
    07-03-2013
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Collecting data from multiple closed excel files based on criteria - New to EXCEL adva

    Quote Originally Posted by Kaper View Post
    Vlookup works also with closed files. You just need to include whole path to file in address, like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Sorry, my description is a bit misleading.
    You're absolutely right, using the full path/filename is working with VLOOKUP. As I have 30-31 files (one for each day) I didn't want to manually write the full path/filename in each cell, instead I wanted to use the INDIRECT function to pull the file name from a hidden list. That function however only works if the files are open.

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Collecting data from multiple closed excel files based on criteria - New to EXCEL adva

    Of course INDIRECT needs open files.

    Have you seen my second post with a link to Ron's pages?

    Another option - with relatively simple VBA code you can write formulas with full paths into cells

  6. #6
    Registered User
    Join Date
    07-03-2013
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Collecting data from multiple closed excel files based on criteria - New to EXCEL adva

    Quote Originally Posted by Kaper View Post
    Of course INDIRECT needs open files.

    Have you seen my second post with a link to Ron's pages?

    Another option - with relatively simple VBA code you can write formulas with full paths into cells
    I've only seen it after I wrote my answer...
    I am looking into it, and will get back with the results. Thank you!

+ 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] Collecting files and folders name into excel.
    By VINOTHBASKRAN in forum Excel General
    Replies: 3
    Last Post: 01-09-2015, 12:39 PM
  2. Extract Data from Multiple Closed Excel Files
    By Gittelman in forum Excel General
    Replies: 2
    Last Post: 07-29-2014, 12:09 AM
  3. Replies: 0
    Last Post: 07-28-2014, 10:19 PM
  4. Trying to import data from a range of closed excel files
    By angry_pirate in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-10-2014, 08:52 AM
  5. Replies: 1
    Last Post: 02-25-2013, 10:38 PM
  6. Collecting data from several Excel files into one summary Excel Sheet
    By zico10 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-18-2013, 09:15 PM
  7. Need to copy range from multiple closed excel files
    By stretch90 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2011, 03:37 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