+ Reply to Thread
Results 1 to 4 of 4

merging data from multiple non-standardized workbooks into one summary worksheet

  1. #1
    Registered User
    Join Date
    06-11-2014
    Posts
    2

    merging data from multiple non-standardized workbooks into one summary worksheet

    Hello,

    I am attempting to write code for a macro that can cycle through about 30 excel workbooks and merge the data. getting the raw data on one sheet is not a problem, but I also need to sort similar data into corresponding columns while merging such that all data from the workbooks with a certain column heading will be in a single column with a single heading on the summary sheet. The problem is that the column headings on the source workbooks are not always standardized, i.e. "F high", "high F". Each sheet has several columns that look like the one below, with a header at the top and a series of numbers. (please ignore the dashes, I just used them to line up the columns in this post, in excel each value is in a different cell)


    F Low---F High---V Low
    721-----999---804
    721-----999---0
    721-----999---0
    711-----720---786
    711-----720---713


    My vba skills are very basic, so I have been approaching this problem with a mountain of if..else and InStr commands, which doesn't seem like the best method and isn't working. Could anyone help me with this sorting problem? Any help at all would be very much appreciated.

    Thank you

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: merging data from multiple non-standardized workbooks into one summary worksheet

    I would be tempted to create a lookup table which maps the different values in the column headers of the 30 sheets to the header that you want to use in your compilation. Then use VLOOKUP in your code to get the preferred value.

    A separate macro to pull out all the header values in you 30 sheets to create the mapping table would be a good idea so that you can be sure to get all of them.
    Martin

  3. #3
    Registered User
    Join Date
    06-11-2014
    Posts
    2

    Re: merging data from multiple non-standardized workbooks into one summary worksheet

    thank you mrice. so after pulling all the headers to a separate table, wold a lookup table allow me to assign groups of headers to to specific headers for the final compilation?

    I have been trying to research using lookup tables in excel, but cant find any very useful. would you know of an good places to read up about them?

    thanks again for the help

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: merging data from multiple non-standardized workbooks into one summary worksheet

    Might be easier if you could post a couple of workbooks with differing headers so that an example can be created.

+ 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] Merging 1 worksheet from multiple workbooks into a master workbook
    By neato in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-09-2014, 01:47 PM
  2. Merging data from many workbooks into one summary sheet
    By madchr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-16-2013, 10:53 AM
  3. Merging Data from Worksheet from Multiple Workbooks
    By trentsteffen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2013, 10:58 AM
  4. Copy values from multiple closed workbooks to a summary worksheet
    By teireii in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2012, 02:58 AM
  5. Summary Worksheet from Multiple Workbooks
    By eddie_zoom in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2006, 11:45 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