+ Reply to Thread
Results 1 to 4 of 4

Merging of columns from multiple workbooks into one worksheet

  1. #1
    Registered User
    Join Date
    05-11-2013
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    21

    Merging of columns from multiple workbooks into one worksheet

    Hello All,

    I have multiple workbooks inside that multiple worksheets are available, i wanted to merge all the worksheets data into one excel file.
    Ex.
    Book1
    A B C
    5 1 7
    4 5 8
    4 6 9
    2 9 7
    6 10 4
    9 10 4
    10 10 10

    Book2
    D E F
    55 59 56
    57 54 59
    53 54 50
    60 56 51
    51 53 52
    55 56 56
    58 60 50
    60 52 56
    51 50 50
    53 53 52
    55 54 50

    OutPut should be

    A B C D E F
    5 1 7 55 59 56
    4 5 8 57 54 59
    4 6 9 53 54 50
    2 9 7 60 56 51
    6 10 4 51 53 52
    9 10 4 55 56 56
    10 10 10 58 60 50
    60 52 56
    51 50 50
    53 53 52
    55 54 50
    Could you please help me resolving this issue. Many thanks in advance.

    Best Regards,
    Raj

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Merging of columns from multiple workbooks into one worksheet

    Maybe something like this with all workbooks open:

    Please Login or Register  to view this content.
    Untested but should merge all the sheets of all the workbooks into Sheet1 of Workbook1.
    Last edited by JOHN H. DAVIS; 08-03-2017 at 03:39 PM.

  3. #3
    Registered User
    Join Date
    05-11-2013
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Merging of columns from multiple workbooks into one worksheet

    Hi John,

    Thank you for your response. Please see the below image for the output (O/P) of your code.

    Along with that, i have provided my requirements in the same image for your better understanding
    Input (I/P) File 1: Which is my first file
    I/P File 2: Which is my second file
    Desired O/P File: Which is the merging of all the used columns of both the files (I/P File 1 & I/P File 2)

    Many thanks in advance.

    Kind Regards,
    Raj
    Merging of Columns.jpg

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Merging of columns from multiple workbooks into one worksheet

    Thanks a lot Mr. John for this great code
    I have edited a little to suit OP request
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

+ 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. Merging multiple workbooks into one worksheet and manipulating data
    By scurders in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-17-2016, 04:27 AM
  2. [SOLVED] VBA Merging Data from Multiple Workbooks in columns instead of rows
    By Sanne1982 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-08-2016, 05:33 AM
  3. merging data from multiple non-standardized workbooks into one summary worksheet
    By mikebolton in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2014, 03:16 PM
  4. [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
  5. Replies: 6
    Last Post: 02-28-2014, 09:34 AM
  6. 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
  7. Merging columns from two workbooks
    By macaonghus in forum Excel General
    Replies: 0
    Last Post: 10-15-2009, 04:54 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