+ Reply to Thread
Results 1 to 6 of 6

Merging two tables with different column number.both tables have some column common name

  1. #1
    Registered User
    Join Date
    03-23-2011
    Location
    Egypt
    MS-Off Ver
    Excel 2007
    Posts
    30

    Merging two tables with different column number.both tables have some column common name

    If I have two tables for example the first one has 11 columns and the second one has 6 columns (and the 6 columns names already exists in the first one).

    SO I need to join or merge the two tables to have the two tables in one table even If I have 5 blank columns for the second one.

    to handle it for a small tables it is easy but for more than 300 row, I want to do it automatically using a macro or
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Merging two tables with different column number.both tables have some column common na

    Are you comfortable with VBA solution? All you have to do is press a button and all will be updated.

  3. #3
    Registered User
    Join Date
    03-23-2011
    Location
    Egypt
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Merging two tables with different column number.both tables have some column common na

    Yes of course it ok to do it with VBA or formula

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Merging two tables with different column number.both tables have some column common na

    Try the attached.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-23-2011
    Location
    Egypt
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Merging two tables with different column number.both tables have some column common na

    Thanks a lot for your effort. God bless you
    That's exactly what I need

  6. #6
    Registered User
    Join Date
    03-23-2011
    Location
    Egypt
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Merging two tables with different column number.both tables have some column common na

    Hello,

    I've tried to use the same code on two bigger tables each table is locates in a different sheet and t combine them in a third sheet.


    I always get error 1004


    Please Login or Register  to view this content.
    I always get an ERROR in this Line

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.

    could you please help me to solve this issue

+ 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. Joining two tables using a common column
    By hgteros in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-18-2013, 08:04 PM
  2. Connecting two tables with common column
    By narendrabr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2013, 01:04 AM
  3. Merging 2 files/tables with common variable
    By icecube in forum Excel General
    Replies: 4
    Last Post: 06-29-2012, 07:28 AM
  4. Copying two tables and merging them in a common table
    By Antik888 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2012, 03:45 AM
  5. merging 2 tables with different number of rows
    By bhawkins9991 in forum Excel General
    Replies: 1
    Last Post: 10-04-2010, 07:40 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