+ Reply to Thread
Results 1 to 4 of 4

Combine 3 tables into 1

  1. #1
    Registered User
    Join Date
    12-23-2013
    Location
    Slo
    MS-Off Ver
    Excel 2010
    Posts
    3

    Post Combine 3 tables into 1

    Hello,

    I'm looking for a formula which would combine 3 tables into one with belonging appropriate values. I believe example in file attached is very self-explanatory since I've also colored cells to match the final table. Perhaps I might mention that Table 1 is basically the source table and contain all existent names. Table 2 and Table 3 are just partial tables and contain only some of the names from Table 1 but not any additional ones.
    Please let me know if anything is incomprehensible.

    Thanks for help in advance!

    Excel_example_table.xlsx

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Combine 3 tables into 1

    Welcome to the forum.
    Please note that this is a moderated forum, so please take a few minutes to read the forum rules (at the link above).

    You'll see that while we discourage posting the same question in multiple forums (because the same talented people frequent multiple forums), we insist that you post links to your other posts in those forums. That way we can monitor progress on them and avoid wasting our time and energy solving problems that are already solved.

    I'll post the one link I'm aware of THIS TIME.
    http://www.mrexcel.com/forum/excel-q...-into-1-a.html
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Combine 3 tables into 1

    a. Do a one time manual effort to "stack" all the tables into one single table via move or cut n paste, with data for each different column header in its own column, except for Name
    b. Create a pivot on that one single table
    - Drag n drop Name into Row area, drop all the rest of the fields into the Data/Values area (set to Sum)
    - Adjust the Data/Values fields placement to suit (Manually move the fields to the left or right)
    The above should give you the desired results in a matter of minutes. The pivot will return the unique names listing in the leftmost row, with all the corresponding data in the desired Data/Value fields
    ------------------------------------
    Works? Wave it, hit the little star at the bottom left of my responses

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Combine 3 tables into 1

    If you copy the headings from the 2 tables to your mail table...
    Value 1 Amount 1 Value 2 Amount 2

    Then you can use this for Value1 copied to Amt 1...
    =IFERROR(INDEX($A$17:$C$24,MATCH($A4,$A$17:$A$24,0),MATCH(C$3,$A$17:$C$17,0)),"")
    and this for the other 2...
    =IFERROR(INDEX($A$28:$C$35,MATCH($A4,$A$28:$A$35,0),MATCH(E$3,$A$28:$C$28,0)),"")
    Copy all 4 cells down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Combine two tables
    By Ashleyyy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-10-2012, 02:34 PM
  2. Compare/Combine 2 tables
    By phantomguitarist in forum Excel General
    Replies: 2
    Last Post: 08-07-2009, 08:04 AM
  3. Combine 2 tables together
    By nikolas22t in forum Excel General
    Replies: 6
    Last Post: 12-13-2006, 05:52 AM
  4. [SOLVED] how combine multiple tables into one
    By Pinocchio in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  5. [SOLVED] how combine multiple tables into one
    By Pinocchio in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01: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