+ Reply to Thread
Results 1 to 4 of 4

Consolidation Macro for two different datasets

  1. #1
    Registered User
    Join Date
    08-07-2015
    Location
    cordyceps
    MS-Off Ver
    cordyceps
    Posts
    7

    Question Consolidation Macro for two different datasets

    Hi everyone,
    This forum has helped me in the past and I’m wondering if it can help me again. A task we have at work has proven to be quite onerous and I’m wondering if we can create a macro to simplify it. The task consists of two parts.

    1) Taking a bunch of individual tracking sheets sent by workers and consolidating them all into one master sheet. The master sheet doesn’t require all the data from the tracking sheet so it’s a matter of selectively copying columns

    2) This part is the harder one that’s stumping me. After the tracking sheets are consolidated, I need to insert other records in beneath the records already added, based on a tracking number at the beginning. This secondary sheet does not have all the columns from the first sheet either. As in there will be blanks in those lines where the secondary sheet doesn’t contain that data.
    So what I need is a macro that hopefully could combine these two features together. Unfortunately, all I’ve managed to cobble together so far is something that copies all the tracking sheets together. Can anyone offer me any more help? I’ve included sample datasets with arbitrary data as an example of what I'm working with. The actual datasets we're getting are much larger (1000+), which is what makes a macro so necessary

    Input Dataset 1.xlsxInput Dataset 2.xlsxInput Dataset 3.xlsxOutput Dataset Example.xlsx

    Thanks very much!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Consolidation Macro for two different datasets

    See here
    https://youtu.be/6XsvI9i2z7s
    and here
    http://www.xlorate.com/vba-examples....rough%20Folder

  3. #3
    Registered User
    Join Date
    08-07-2015
    Location
    cordyceps
    MS-Off Ver
    cordyceps
    Posts
    7

    Re: Consolidation Macro for two different datasets

    This wokred great! Thanks!

    Wondering if I can get a little more help. Worksheets in the books I'm combining aren't always named sheet1. Could this be replaced with a variable that takes the first worksheet in the book?

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Consolidation Macro for two different datasets

    Please Login or Register  to view this content.
    would be the 1st sheet in the workbook

+ 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] Macro to combine data from two datasets based on matching strings
    By mfd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-21-2014, 03:23 PM
  2. [SOLVED] Splitting Datasets to new TABs by column title MACRO
    By ad9051 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 08-01-2012, 03:24 AM
  3. [SOLVED] Macro to sort column datasets based on totals
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-10-2011, 06:20 PM
  4. [Macro] Remove blank rows (apart from 1 to separate datasets)
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-08-2011, 05:41 PM
  5. Macro to re-order datasets/groups by time with example
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2011, 02:07 PM
  6. multiplication of datasets by macro
    By ad9051 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-07-2011, 02:00 PM
  7. Array formulae/macro? Counting datasets -
    By ad9051 in forum Excel General
    Replies: 3
    Last Post: 12-19-2010, 02:11 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