+ Reply to Thread
Results 1 to 6 of 6

Consolidating data from certain sheets in a master summary sheet

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    Derby, England
    MS-Off Ver
    2010, 2013 2016 Pro
    Posts
    85

    Consolidating data from certain sheets in a master summary sheet

    Hi

    I have a number of xlsx files that I need to compile in one master excel file, they are contained in a master folder and sub folders, all files begin with PJ anything other than this are to be ignored

    I have included a few sample files and a master file which shows where the data is from.

    I need to search the folders for the files and retrieve the data from the relevant xlsx files and compile them in one master file.

    Master file From cell in PJ .xlsx file
    Date ------------- E5 ----------------- To cell A1 in Master file
    Name ------------ H5 ----------------- To cell A2 in Master file
    Time ------------- E8 ----------------- To cell A3 in Master file
    Age -------------- H8 ----------------- To cell A4 in Master file
    Gender ----------- H11 ---------------- To cell A5 in Master file
    Type ------------- E11 ---------------- To cell A6 in Master file
    Address 1 -------- E14 ---------------- To cell A7 in Master file
    Address 2 -------- E15 ---------------- To cell A8 in Master file
    Address 3 -------- E16 ---------------- To cell A9 in Master file
    Address ---------- E17 ---------------- To cell A10 in Master file
    Attached Files Attached Files
    Last edited by RoyLittle0; 10-05-2013 at 04:04 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Consolidating data from certain sheets in a master summary sheet

    Will each PJ file contain only the one record? How many PJ files are there? Are there any other files in the subfolder or just the ones beginning with PJ?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-04-2012
    Location
    Derby, England
    MS-Off Ver
    2010, 2013 2016 Pro
    Posts
    85

    Re: Consolidating data from certain sheets in a master summary sheet

    Will each PJ file contain only the one record? Yes there will only be one record per PJ file

    How many PJ files are there? At the moment there are approximately 130 PJ files, but this growing weekly (10 ish, added per week)

    Are there any other files in the subfolder or just the ones beginning with PJ? there are only xlsx files in the folders, sub folders and all the other files begin with "Weekly" only the project files begin with PJ

    I would also need it to not duplicate results if scanned twice, if possible

    Hope this makes sense.
    Last edited by RoyLittle0; 10-05-2013 at 08:29 AM.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Consolidating data from certain sheets in a master summary sheet

    Hi RoyLittle0

    Is there more than one Sub Folder that contains PJ Files?
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Consolidating data from certain sheets in a master summary sheet

    Hi RoyLittle0

    This Code is in the attached
    Please Login or Register  to view this content.
    You'll need to change this line
    Please Login or Register  to view this content.
    And this line
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-04-2012
    Location
    Derby, England
    MS-Off Ver
    2010, 2013 2016 Pro
    Posts
    85

    Re: Consolidating data from certain sheets in a master summary sheet

    Hi Jaslake

    Thanks for the reply and the solution, I have tested it on the files I have on my computer and all seems to be working fine, I am unable to fully test it on the main folder as i am working away in the USA so I am not in the office at the moment

    In answer to your previous question, Yes there are more sub folders in the sub folders, I think the sub folders are about 5 deep.

    Thanks for your help

    Roy

+ 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] Consolidating multiple worksheets into one and retain links to source data in master sheet
    By enigmadreama in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-09-2012, 08:33 PM
  2. Create a summary from multiple sheets on a master/summary sheet
    By detribus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2012, 08:04 PM
  3. [SOLVED] Consolidating data from several worksheets to one master sheet in excel 2010
    By ospenc in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-31-2012, 10:27 AM
  4. Consolidating data on summary sheet based on unique ID
    By Evetsthegreat in forum Excel General
    Replies: 1
    Last Post: 06-24-2011, 04:15 AM
  5. Consolidating data on muliple sheets to master
    By Dylan&Hayden in forum Excel General
    Replies: 1
    Last Post: 07-16-2008, 11:10 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