+ Reply to Thread
Results 1 to 3 of 3

Combine multiple sheets of multiple workbooks in one sheet

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    2

    Combine multiple sheets of multiple workbooks in one sheet

    Good evening all,

    I have the following problem:
    One main folder "2012", subfolders "Month January", "Month February", ... , "Month December" and within each subfolder four to five week-files "Week 01", "Week 02",..."Week 52". Each "Week xx"-file has the sheet "Data" which i would like to analyze.

    I want to gather all week-data in one consolidated Excel-sheet of 2012. Thus, the rows in Week01-sheet Data are copied in the consolidate sheet, the rows in Week02-Sheet Data are copied directly under it and so on...Difficulties are that only the rows starting from Row 11 must be copied into the consolidated sheet and that the number of non-blank rows differs within each Week xx-"Data" sheet.

    Does anyone have an effective solution for this?
    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Combine multiple sheets of multiple workbooks in one sheet

    You get better help if you post an excel file, without confidentional information.

    Please also add the expected result.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Combine multiple sheets of multiple workbooks in one sheet

    Interesting problem so I had a go at it.

    In uploaded file check that range B2 to B12 in Sheet2 has the correct values for the different folders that contain all the files from January to December.

    Go to Sheet1 and run macro "ProcessAllFiles" to extract data from all files.

    As I'm using command "ActiveSheet.UsedRange.Offset(10).Copy" I'm assuming that all data in every "Week xx" file starts at row 1.

    Alf
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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