+ Reply to Thread
Results 1 to 7 of 7

Transferring Data from Multiple Workbooks to a Master Workbook

  1. #1
    Registered User
    Join Date
    12-20-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    37

    Transferring Data from Multiple Workbooks to a Master Workbook

    Suppose I have multiple workbooks, each of which contain item IDs. One of these workbooks is a master list containing all IDs, and every other workbook contains a small piece of the master list. Additional information is added, in each small workbook, beside each item ID and the workbook is marked as complete. What I would like to do is have Excel check these smaller workbooks against the master list / master workbook. In particular, I would like Excel to check small workbook item IDs one by one and find the same ID in the master workbook. When a match is found I would like Excel to paste the new information gathered in the smaller workbooks to the master workbook.

    Unfortunately, there is a catch: Each smaller workbook has one ID reviewer, but the master workbook sometimes pairs these reviewers together to help ensure that all the necessary information has been included (two pairs of eyes are better than one). This means that the new information added by reviewers 1 and 2 is mashed together so that we have columns D1 E2 F1 G2 H1 I2 and so on, where 1 stands for person 1 and 2 for person 2. Note that D1 and E2 contain the same kind of information, just filled in by a different person. As such, for Excel to properly paste the information from the small workbooks it needs to not only check IDs, but once it has confirmed an ID match it needs to check whether the person's name in the small workbook (which is always 5 columns over including the 1st ID-bearing column) is 3 columns over or 4 columns over in the master workbook. If it is 3 columns over it needs to paste into D,F,H and so on, avoiding E,G, and I. The opposite is true if it is 4 columns over. It may be worth noting that it is possible for the 4th column over to be blank if only one person has been assigned to checking that particular item (the system is far from perfect).

    Would it be possible to design a macro that works by highlighting a range of IDs in the master workbook and automatically checking all small workbooks in a given file directory for IDs and names, and filling in the relevant information as described above? Please let me know if anything is unclear, as I realize this is a very specific question.

    Would something like this be a good start?

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Stopwatch; 12-20-2013 at 11:41 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Transferring Data from Multiple Workbooks to a Master Workbook

    Hello Stopwatch,

    Welcome to the Forum!

    Your explanation is excellent. When coding a custom solution, it is faster and more accurate to work with the data you are working with. If you post a copy of the master and one or two of the "smaller" workbooks, it would be appreciated.

    If you files are quite large, you could zip them into a single archive. That will save space and keep all the files together.

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    12-20-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Transferring Data from Multiple Workbooks to a Master Workbook

    Hi Leith,

    Unfortunately I do not have access to the workbooks at the moment. Essentially the master list consists of an ID column, two name columns, an item name column, and about 10 columns of attributes (5 assigned to each of the 2 name columns). The small workbooks are much the same, consisting of an ID column, a single name column, an item column, and 5 attribute columns. An exact solution, although it would be great, isn't entirely necessary. I'm only looking to get a general outline of the sorts of pieces a savvy VBAer would use to solve the problem. Thanks again for your help!

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Transferring Data from Multiple Workbooks to a Master Workbook

    Hello stopwatch,

    If you don't have access to the workbooks, I can wait until you do. Without seeing the data and the layout, I will be continuously guessing about what you need or want to do. As a moderator, I can not afford to spend my time that way.

  5. #5
    Registered User
    Join Date
    12-20-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Transferring Data from Multiple Workbooks to a Master Workbook

    That's understandable. I've created two small sample files to assist with visualizing the intended layout. Of course, with only two files of this size the process would be very simple, but there are many small workbooks. At the moment attributes are being manually entered from the small workbook to the master workbook.

  6. #6
    Registered User
    Join Date
    12-20-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Transferring Data from Multiple Workbooks to a Master Workbook

    Have the sample files been at all helpful in illustrating my initial post?

  7. #7
    Registered User
    Join Date
    12-20-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Transferring Data from Multiple Workbooks to a Master Workbook

    Does anyone have any suggestions?
    Last edited by Stopwatch; 01-01-2014 at 02:56 PM.

+ 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. Do Until Loop - Transferring data from several workbooks to a Master workbook
    By GalsenPAP in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-10-2013, 01:00 PM
  2. [SOLVED] Import data from multiple workbooks into master workbook
    By Jeepster325 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-07-2013, 06:44 PM
  3. [SOLVED] Move data from master workbook to multiple workbooks.
    By visha_1984 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2013, 02:01 PM
  4. Copy Data from multiple workbooks to a master Workbook
    By zeeez in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-04-2012, 01:45 PM
  5. Replies: 5
    Last Post: 03-05-2012, 09:31 AM

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