+ Reply to Thread
Results 1 to 4 of 4

merge two spreadsheets with different columns but the same IDs

  1. #1
    Registered User
    Join Date
    12-08-2022
    Location
    Tempe, AZ
    MS-Off Ver
    365
    Posts
    2

    merge two spreadsheets with different columns but the same IDs

    Hi. Here's my setup:

    Two sheets in different workbooks, each with different columns (for example, one case has columns like case type, name, file number; the other has a column called note), but with rows representing the same client. Each row has an ID (present in both sheets), in case that helps.

    The goal is to merge the two spreadsheets into a single spreadsheet, to be used as report. This needs to be done once a month, and the more efficiently and with the least amount of user input, the better. The users are not computer people.

    I have seen tutorials that appear to relate to this sort of thing, and it looks like a Power Query is the way to go, but I haven't seen quite my exact use case, and would appreciate some guidance. My initial attempts to solve this myself have been unsuccessful.

    Thanks

    For bonus credit, each sheet has a column that I don't want in the final report (Column1, it is called), and the ID does not need to be printed in report. Also, the Case name appears in both reports and only needs to appear once in the report. Finally, it would be very helpful if the final report has an extra column that has one of two present values, depending on the first two letters of the File Number. For example, if the File Number is MC22-0423, the value might be Mighty Car, and if the File Number is IB33-8888, the value would be Ideal Bar.

    Thanks!!
    Last edited by CactusWren; 12-16-2022 at 08:27 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: merge two spreadsheets with different columns but the same IDs

    Please see the yellow banner at top of the page on how to attach a sample workbook.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    12-08-2022
    Location
    Tempe, AZ
    MS-Off Ver
    365
    Posts
    2

    Re: merge two spreadsheets with different columns but the same IDs

    Okay, I attached a sample.
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: merge two spreadsheets with different columns but the same IDs

    Bring your two tables into Power Query and then join them (merge) on the common field

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. [SOLVED] Merge Spreadsheets
    By Stan Denman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-22-2021, 02:30 PM
  2. [SOLVED] Merge Spreadsheets
    By MadDino in forum Excel General
    Replies: 1
    Last Post: 04-16-2016, 02:30 AM
  3. Replies: 1
    Last Post: 11-02-2012, 09:59 AM
  4. [SOLVED] Merge duplicate rows and merge the columns (approx 10 columns)
    By adfeddon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2012, 11:19 AM
  5. Merge two spreadsheets
    By TheNameless122 in forum Excel General
    Replies: 8
    Last Post: 07-09-2010, 07:54 AM
  6. Merge my 2 spreadsheets?
    By streetsoldier707 in forum Excel General
    Replies: 4
    Last Post: 11-23-2009, 03:53 PM
  7. [SOLVED] merge 2 spreadsheets
    By Gerrysr in forum Excel General
    Replies: 0
    Last Post: 02-25-2005, 01:06 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