+ Reply to Thread
Results 1 to 7 of 7

Combining multiple files

  1. #1
    Registered User
    Join Date
    08-04-2020
    Location
    US
    MS-Off Ver
    MS Office 2019
    Posts
    2

    Combining multiple files

    Hello friends,

    I am a newbie to both this group and to Excel. Need help. I spent the last couple of days reading and watching Youtube and still can't figure out how to combine lists on my MS Office 2019.

    I have customer sales for the past 5 years. Each year is a separate file. Some customer are the same some are different.

    Question: 1) how do I combine those 5 files? 2) where customer is same - I like to not duplicate on the row 3) the columm will show sales for each year.

    Attaching an example for your review.

    Thank you for reading and support!!!

    Conrad
    Attached Files Attached Files
    Last edited by salsawarrior; 08-04-2020 at 05:59 PM. Reason: adding examples

  2. #2
    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,873

    Re: Combining multiple files

    I have joined the two tables using Power Query. File is attached.

    Review PQ
    In the attached file
    Click on any cell in the new table
    On the Data Tab, click on Queries & Connections
    In the right window, double click to open Query
    Review PQ steps

    M-code basics:
    - "let" is the start of a query
    - "in" is the closing of a query
    - each transformation step sits in between those 2 lines
    - each step line is ended by a comma, except the last one
    - "Source" is always the first step (Source Data)
    - After "in" you have the last step referenced
    Attached Files Attached Files
    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

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Combining multiple files

    .
    Another consideration :

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

  4. #4
    Registered User
    Join Date
    08-04-2020
    Location
    US
    MS-Off Ver
    MS Office 2019
    Posts
    2

    Re: Combining multiple files

    Thanks, Alan. The spreadsheet you sent still has no changes?

  5. #5
    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,873

    Re: Combining multiple files

    Look at Sheet2. Sorry, I mis-copied your original.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Combining multiple files

    As an alternative:

    Please Login or Register  to view this content.
    Last edited by Haluk; 08-05-2020 at 06:56 AM.

  7. #7
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Combining multiple files

    While cleaning my desktop, i found the attached file which seems i haven't posted before ....

    The code simulates a Full Outer Join with using ADO & SQL;

    Sample file is also attached.

    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 sheets from multiple files
    By thoandros in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-24-2018, 04:08 PM
  2. Combining multiple excel files
    By Rajendra_kodavaty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-08-2016, 12:00 AM
  3. Error combining multiple csv files
    By willcpl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-10-2015, 06:16 AM
  4. Error combining multiple csv files
    By willcpl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-10-2015, 05:21 AM
  5. Combining Data from Multiple .xlsx Files with Multiple Sheets
    By jeannelee94 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2015, 10:03 AM
  6. Combining Multiple Files in to one on different tabs
    By bohaiboy in forum Excel General
    Replies: 2
    Last Post: 01-16-2012, 03:00 PM
  7. Combining multiple files
    By Rlyeh462 in forum Excel General
    Replies: 0
    Last Post: 04-11-2007, 02:59 PM

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