+ Reply to Thread
Results 1 to 7 of 7

Merge and Sum specific data from multiple workbooks into a single workbook

  1. #1
    Registered User
    Join Date
    12-06-2019
    Location
    Memphis, TN
    MS-Off Ver
    2019
    Posts
    9

    Merge and Sum specific data from multiple workbooks into a single workbook

    I have a data sub-folder that contains date format workbooks. (Tracker 12.01.2019.xlsx, Tracker 12.02.2019.xlsx, etc.)

    I'm trying to pull specific data from each workbook, sum the data into weekly totals per employee, and add to a new workbook with a weekly drop down that can change the data accordingly.

    Every Tracker data workbook is the same, with 3 sheets. (1st, 2nd, and 3rd) Another issue might be that the names are not always in order, so the data has to be pulled according to the name.

    1st problem: Pulling the data, based on the employee name
    2nd problem: Adding/Sum the data into totals
    3rd problem: The weekly drop-down

    I"m using Excel 2019, but the data and users who view and input the data are using Excel 2013.

    I've tried a few functions and different methods, but I can't seem to get it working quite right. Any help would be appreciated.
    Last edited by jstrem75; 12-08-2019 at 05:52 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,116

    Re: Merge and Sum specific data from multiple workbooks into a single workbook

    Do you REALLY need to keep these in separate FILES? This is going to complicate the solution needed and be rather slow, if you have large bodies of data that you want to pull across.

    The best solution involves the use of INDIRECT. But, it only works if BOTH source and destination files are OPEN. Will they be?

    After that there are a few VBA-based approaches. These tend to be (very) slow. Are you OK with a VBA-based solution? How many rows/columns are there in your real data?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Merge and Sum specific data from multiple workbooks into a single workbook

    Hi jstrem75,

    Welcome to the forum.

    Looking quickly at the data I think you could achieve what you want with Pivot Tables.
    How do you feel about Pivot Tables?
    The data in sheets 1 to 3 in each workbook are the same except the values in cols D to H.
    Also you want Weekly Reports so what does the "12.01.2019-12-07.2019" in the Weekly Report Sheets (1 to 3) mean?

    Regards

    peterrc

  4. #4
    Registered User
    Join Date
    12-06-2019
    Location
    Memphis, TN
    MS-Off Ver
    2019
    Posts
    9

    Re: Merge and Sum specific data from multiple workbooks into a single workbook

    Glen Kennedy - They have to be in separate files for reference, not only for the customer but for corporate management. I'll be more specific about how it works. I tried INDIRECT, but it's a nightmare having to open everything in order to obtain the data needed. I'm okay with VBA solutions. I've tried a few, but my VBA knowledge is preschool level. The "real data" can have an unlimited number of rows due to revolving labor and workload, but the columns are static.

    peterrc - Thanks for the welcome! Can you import multiple workbooks and sum the data into a pivot table? I've tried Pivot Tables, but could not seem to get it working as needed. Also, I missed the (orders) column on the data sheets. The imports needed for the weekly report are: Name, Orders, Lines, Cases, Pallets, Hours, and PTG (Percentage To Goal).

    Here is how this works:

    Orders are printed out. They are logged into a daily excel spreadsheet via RF guns and given to a random amount of employees in 8 different departments. The department statistics are calculated into 1st, 2nd, and 3rd shift worksheets and saved as "Filename CurrentDate" format (aka Tracker 12.01.2019.xlsx) for daily management review.

    The customer and management would like to see a weekly/monthly report included with the daily. I'm trying to automate the process.

    The date-to-date is a reference to the list of workbooks that were summed.

    UPDATE: I might have the data figured out using 2019 Get&Transform. Now, it's a matter of format and file selection. I might have to make separate folders for each week.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,116

    Re: Merge and Sum specific data from multiple workbooks into a single workbook

    Persevere with Get & Transform. It will be FAR superior than any pre-school solution I could come up with (I'm at the same level as you, or lower!!)

  6. #6
    Registered User
    Join Date
    12-06-2019
    Location
    Memphis, TN
    MS-Off Ver
    2019
    Posts
    9

    Re: Merge and Sum specific data from multiple workbooks into a single workbook

    Definitely! I have the data working, but I'm not sure about the weekly file pull. I think I'll have to resort to "what files are in the folder" vs "excel picking the files for me"

    You can add any data to any workbook in the data folder OR add any files to the data folder, and it will update(refresh) the weekly workbook automatically.

    I've attached the zip data if anyone wants to improve or comment.
    ---------------------------------

    I wonder if I can use Harlan's Pull to get the workbook filenames in order to preselect the data per week vs using a folder.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,116

    Re: Merge and Sum specific data from multiple workbooks into a single workbook

    "Pull" was one of the options I had in mind. It'll work, for sure. But it IS sooo slooow - in my hands, anyhow!!).

+ 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. Merge Data from Multiple Workbooks into a Master Workbook
    By Zatin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2018, 05:11 AM
  2. Merge multiple workbooks into single workbook with different sheets
    By kittu55 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2017, 09:59 PM
  3. Merge specific column data from multiple sheets in single column of new workbook.
    By kadam203 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2016, 01:58 AM
  4. [SOLVED] Importing a specific range of cells from multiple workbooks to a single workbook
    By exangel7 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-22-2013, 02:41 PM
  5. [SOLVED] Merge/Consolidate Multiple Workbooks data into a Single Sheet
    By COLIN_303 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-08-2012, 04:53 AM
  6. Pulling Data from multiple workbooks into a single workbook
    By fizzy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2012, 08:59 AM
  7. How to Copy Data from multiple workbooks to single workbook
    By Gautam Garg in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-23-2012, 04:17 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