+ Reply to Thread
Results 1 to 4 of 4

Merge multiple tables into one

Hybrid View

  1. #1
    Registered User
    Join Date
    02-11-2011
    Location
    Vilnius, Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    Merge multiple tables into one

    Hello,

    I have a file containing 3 sheets with 3 tables. Each table has same columns. Is it possible to combine all 3 tables into seperate sheet to another table?
    And also I need for this table to autoupdate if any of those tables gets data added. For example:

    ID NAME QUANTITY
    1 AXX 7
    2 AX1 8
    3 AX2 8

    ID NAME QUANTITY
    4 AXX 7
    5 AX1 8
    6 AX2 8

    ID NAME QUANTITY
    7 AXX 7
    8 AX1 8
    9 AX2 8

    And Final result is another table in another sheet looking like that:

    ID NAME QUANTITY
    1 AXX 7
    2 AX1 8
    3 AX2 8
    4 AXX 7
    5 AX1 8
    6 AX2 8
    7 AXX 7
    8 AX1 8
    9 AX2 8

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Merge multiple tables into one

    try PowerQuery

    (if you change anything in your source tables then right click on result PQ table and select Refresh)
    Last edited by sandy666; 09-12-2017 at 09:30 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: Merge multiple tables into one

    Or try VBA: see attachment

    Private Sub CombineWsh_Click()
      Dim wsh1 As Worksheet, wsh2 As Worksheet, wsh3 As Worksheet, wsh4 As Worksheet
      
      Set wsh1 = Worksheets("Sheet1")
      Set wsh2 = Worksheets("Sheet2")
      Set wsh3 = Worksheets("Sheet3")
      Set wsh4 = Worksheets("Combine")
    
        wsh1.Range("A:C").Copy wsh4.Range("A1")
        wsh2.Range("A2:C50000").Copy wsh4.Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
        wsh3.Range("A2:C50000").Copy wsh4.Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
      
       wsh4.Activate
    End Sub
    Attached Files Attached Files

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Merge multiple tables into one

    [ deleted by me ]

    I didn't notice thread is marked as solved

+ 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. How to merge multiple tables into 1 master table?
    By Ashley1016 in forum Excel General
    Replies: 11
    Last Post: 04-14-2017, 05:51 AM
  2. Help with Pivot Tables to merge two tables
    By scrawl.to.me in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-26-2015, 06:01 AM
  3. Merge multiple tables in one table
    By chiidzzz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-28-2013, 05:16 PM
  4. Replies: 3
    Last Post: 12-06-2012, 10:51 AM
  5. merge multiple tables
    By magnus101 in forum Excel General
    Replies: 2
    Last Post: 10-31-2012, 12:36 PM
  6. [SOLVED] HOW TO MERGE TWO TABLES
    By Bill Vogel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  7. [SOLVED] HOW TO MERGE TWO TABLES
    By Bill Vogel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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