+ Reply to Thread
Results 1 to 4 of 4

Combining Multiple Tables

  1. #1
    Registered User
    Join Date
    05-23-2022
    Location
    England
    MS-Off Ver
    365
    Posts
    2

    Question Combining Multiple Tables

    Hi, I've been assigned a task where I need to combine user data from around 20 tables into just 1. The tables all have different amounts of rows so they don't all have the same users and the only thing they all share is an email address field.

    I had a look at Power Query but it appeared that the tables needed to have the same amount of rows? I tried to combine the tables using PQ but I couldn't get it to append the non-matching rows from the second file to the merged table.
    Can anyone point me in the right direction please?
    Attached Files Attached Files
    Last edited by Kazrik9; 05-23-2022 at 06:48 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Combining Multiple Tables

    Can 1 email address be associated with more than 1 service? Please read the yellow banner (top) act on its guidelines and post a SMALL, RERESENTATIVE sample Excel sheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    05-23-2022
    Location
    England
    MS-Off Ver
    365
    Posts
    2

    Re: Combining Multiple Tables

    Hi Glenn, apologies I thought there was a post requirement to add the file, it's on there now. Yes an email address can be used in more than 1 service. There'd be around 20 tables but for example, table 1 could have 500 email addresses, table 2 could have 300 addresses but only 200 addresses are matched between the 2 tables, in which case I'd want the unmatched ones to be appended to the end of the table.
    If there isn't really a way to do this natively in Excel then I can write something in VBA to do the task, but I thought I'd check here first.
    Last edited by Kazrik9; 05-23-2022 at 07:53 AM.

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

    Re: Combining Multiple Tables

    Using Power Query, with the following M code:

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

+ 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. Combining Multiple Pivot Tables into 1?
    By BBFDSue in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-23-2022, 09:08 PM
  2. [SOLVED] Combining tables from multiple sheets
    By mnt23 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 04-06-2020, 01:47 PM
  3. [SOLVED] Combining data from multiple tables
    By Mr. Z in forum Excel General
    Replies: 3
    Last Post: 06-11-2019, 02:35 AM
  4. [SOLVED] Combining recordings from multiple tables
    By alexdrums123 in forum Excel General
    Replies: 2
    Last Post: 12-02-2017, 09:19 AM
  5. Combining multiple tables into one table
    By NDmad in forum Excel General
    Replies: 1
    Last Post: 07-20-2016, 03:48 PM
  6. Combining multiple access tables
    By terreese in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2013, 06:12 AM
  7. Combining Multiple Tables
    By fervorking in forum Access Tables & Databases
    Replies: 4
    Last Post: 06-24-2011, 10:44 AM

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