+ Reply to Thread
Results 1 to 5 of 5

Gathering data from multiple excel files into a consolidated file- Possible MACRO??

  1. #1
    Registered User
    Join Date
    10-16-2008
    Location
    Skokie
    Posts
    23

    Gathering data from multiple excel files into a consolidated file- Possible MACRO??

    Trying to learn the basics of how to pull data, from the same formatted excel spreadsheets, combined into one consolidated spreadsheet. I created a few examples below of what I am trying to do. Eventually, I want to be gathering data from over 200 spreadsheets at one time. I believe that a MACRO is needed to do such a thing. I am not sure of the complexity of the MACRO, so hopefully I will be able to mimic whatever needs to be done in my actual file. I have almost ZERO experience with MACROS, so if this is way above entry level MACRO, then please let me know.

    Below I have 3 spreadsheets, and I want to collect the data from those 3 spreadsheets into the consolidated spreadsheet.

    Please HELP!
    Attached Files Attached Files

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Gathering data from multiple excel files into a consolidated file- Possible MACRO??

    Assumptions
    That all the data files are in their own directory. You will have to change path in code.


    While all your examples only show one entry, the code is dynamic in that it will read all entries under Machine/Time/Location. So if the customer works out on three different machines on the same day, it will import all entries.

    F8 will show a list of macros to run.

    Once you're pulled everything in, I recommend you delete the files, or move them to a new folder.
    Attached Files Attached Files
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    10-16-2008
    Location
    Skokie
    Posts
    23

    Re: Gathering data from multiple excel files into a consolidated file- Possible MACRO??

    Thank you for your reply. I do not seem to understand to to get the data into the consolidated. My intention was to have a folder every week with different files. So that, I can use a macro to pull from whichever folder I chose. I seen it before but have no idea how to do it.

    So basically each week I want to:
    Open the blank 'Consolidation of Data' document
    run a Macro that will ask me which folder on my computer I want to pull data from
    chose the appropiate weeks folder
    then the data will be collected in the 'Consolidation of Data' file with all the excel files information that were in that folder

    I know I may be asking a lot. I am not very good at macros/vba so any help would be much appreciated.

    Thanks in advance for any help I can get.

  4. #4
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Gathering data from multiple excel files into a consolidated file- Possible MACRO??

    run a Macro that will ask me which folder on my compute
    Yeah, but you didn't ask for that in your original request.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-16-2008
    Location
    Skokie
    Posts
    23

    Re: Gathering data from multiple excel files into a consolidated file- Possible MACRO??

    Great! Thank you, exactly what I needed.

+ 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. Macro to Copy multiple worksheets into a consolidated file
    By Crossy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-11-2013, 02:35 AM
  2. Replies: 4
    Last Post: 05-02-2013, 11:16 AM
  3. Replies: 0
    Last Post: 11-27-2012, 01:43 PM
  4. Replies: 3
    Last Post: 05-28-2012, 12:42 PM
  5. [SOLVED] Macro copying info/data in multiple excel files into one summary file.
    By Jskasango in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-06-2006, 03:30 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