+ Reply to Thread
Results 1 to 6 of 6

Merging multiple tables based on unique id

  1. #1
    Registered User
    Join Date
    08-27-2015
    Location
    kuwait
    MS-Off Ver
    Office 365
    Posts
    31

    Merging multiple tables based on unique id

    I have multiple tables (tab X1-6) where few columns are common in all and last column is different. I want to combine all tables as one (tab X7) with common columns and last column from all tables appearing side by side using power query. attached is a demo file.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,293

    Re: Merging multiple tables based on unique id

    Power Query
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,293

    Re: Merging multiple tables based on unique id

    Correction
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: Merging multiple tables based on unique id

    This M code does not hardcode any columns, and so you can add more tables as long as the table names start with "t_".

    Please Login or Register  to view this content.
    Last edited by josephteh; 03-28-2024 at 04:49 AM.

  5. #5
    Registered User
    Join Date
    08-27-2015
    Location
    kuwait
    MS-Off Ver
    Office 365
    Posts
    31

    Re: Merging multiple tables based on unique id

    thanks Czeslaw and Josephtel for your support. if possible, can you look into it. I want to add all the values in each row based on description column.

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: Merging multiple tables based on unique id

    3 queries created:

    Please Login or Register  to view this content.

+ 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 Two Pivote Tables for Multiple Row Lables
    By anonymous321 in forum Excel General
    Replies: 7
    Last Post: 06-20-2023, 04:11 PM
  2. [SOLVED] Need help summing and merging tables based on shared column
    By srfinkel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2020, 05:08 PM
  3. Merging Tables with Different Columns, based on 1 column's data
    By dantastical in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-18-2019, 07:03 AM
  4. Merging Multiple Sheets/ Tables to 1 Sheet
    By fotodude in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-08-2018, 02:42 PM
  5. Replies: 5
    Last Post: 01-12-2017, 06:56 PM
  6. Merging two Rows from two different tables based on similar cells
    By michaelmorgan9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2015, 03:35 PM
  7. Merging Multiple Tables Into One Summary
    By Stravitch in forum Excel General
    Replies: 10
    Last Post: 10-23-2014, 08:58 PM

Tags for this Thread

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