+ Reply to Thread
Results 1 to 2 of 2

Merge multiple sheets with different columns into one

  1. #1
    Registered User
    Join Date
    07-21-2013
    Location
    all feserie
    MS-Off Ver
    Excel 2010
    Posts
    1

    Merge multiple sheets with different columns into one

    Hi,

    I have two sheets with different number of columns and I need to combine them into one. For example, sheet 1 has Name, Age, Gender & Marital status and sheet 2 has Name, Gender, Marital status, Occupation & City. After I merge the data the final dataset in sheet 3 should be Name, Age, Gender, Marital status, Occupation & City. I'm currently using the macro below but it does not differentiate between the columns and copies everything. Can someone help?

    Please Login or Register  to view this content.
    Last edited by alansidman; 11-14-2013 at 12:23 AM. Reason: code tags added

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,930

    Re: Merge multiple sheets with different columns into one

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (I have fixed the code tags for you today. Please read all the forum rules and abide by them in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Replies: 1
    Last Post: 10-24-2013, 01:05 PM
  2. Merge multiple excel files into one with multiple sheets
    By madmanmarz in forum Excel General
    Replies: 3
    Last Post: 05-23-2012, 10:10 AM
  3. Merge multiple excels with multiple sheets in a master excel with multiple sheets
    By marchi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2012, 10:37 AM
  4. VBA to merge multiple Workbooks with multiple sheets retaining headers
    By LauraN1 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-19-2010, 03:47 PM
  5. Replies: 3
    Last Post: 03-03-2010, 03:41 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