+ Reply to Thread
Results 1 to 4 of 4

Data Aggregation Macro over Multiple workbooks

  1. #1
    Registered User
    Join Date
    08-11-2022
    Location
    Missouri
    MS-Off Ver
    Excel Office
    Posts
    1

    Lightbulb Data Aggregation Macro over Multiple workbooks

    Hi Everyone.

    Hoping someone can help me with a rather robust macro that I am trying to create to help automate a process. Let me lay things out in best a summary fashion as possible.

    I will be receiving 50 plus files from users

    Each file will have one worksheet in it...the worksheet will have 10 rows with relevant data that I would like to copy and consolidate into another tab. The caveat is that the files I receive back are from a district level so some of them might have 10 rows of data, while others will have multiple branches that roll into the district so 10 rows of data...then a blank row...then 10 more rows of data....and rinse and repeat depending on how many branches are in a district.

    Right now, the process is manually opening ever file and manually dropping the results into an aggregation file but would love to create a macro of sorts that does all the work for me to avoid the human error element of copy and pasting items.

    Thanks for your help and assistance.

    Per notes, I have included a sample version of the excel file. Please note the following:
    rows 1 through 25 are basically aggregate results that I don't care about
    cell B27 represents the name of a location that is part of the total region. I would like to copy the location name (cell B27) and then all yellow highlighted cells within that section and paste over to a new "Aggregation" workbook so that I have a flat file with all of the results. If my math is correct, each location results that are dropped into the "aggregation" workbook will have 36 entries
    In the sample version that I have attached, row 27 has the results for the first location and then the entire survey is replicated again starting on row 60 for the next location within the region. In some cases, there might only be 1 location for that survey. In some instances, there could be +10 location results that will all need to be copied and pasted into my aggregation workbook.
    All files will have two tabs...one will say instructions (nothing to do with this) and one will have the location name, which will also be part of the file name.

    Please let me know what additional information would be helpful to provide.

    Thanks!
    Attached Files Attached Files
    Last edited by gan6d59; 08-15-2022 at 02:09 PM. Reason: adding attachment

  2. #2
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Data Aggregation Macro over Multiple workbooks

    Read the yellow banner at the top. I'm sure I or people here are willing to help you with additional information. The best way to get a solution is with a workbook.

  3. #3
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,312

    Re: Data Aggregation Macro over Multiple workbooks

    How to attach a sample workbook
    https://www.excelforum.com/excel-pro...uncements.html

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,312

    Re: Data Aggregation Macro over Multiple workbooks

    Possibly...
    Please Login or Register  to view this content.

+ 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 Pull Data from Multiple Workbooks to One Master Workbooks
    By eranajoy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2019, 09:24 AM
  2. Macro for extracting data from multiple worksheets from multiple workbooks
    By Piulitsa in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-09-2018, 02:50 PM
  3. Excel record aggregation with VBA macro
    By balaece25 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-20-2014, 12:41 PM
  4. Macro to Pull Data from Multiple Workbooks
    By jessipeachy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2013, 10:17 AM
  5. How to extract data via a macro from multiple workbooks?
    By lross318 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 09-17-2012, 08:31 AM
  6. macro for pulling data from multiple workbooks
    By psrs0810 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2010, 08:08 PM
  7. Replies: 0
    Last Post: 04-23-2005, 03:06 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