+ Reply to Thread
Results 1 to 8 of 8

Combining Data from Multiple Sheets

  1. #1
    Registered User
    Join Date
    02-28-2013
    Location
    PH
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    43

    Unhappy Combining Data from Multiple Sheets

    Hello,

    I badly needed some help with the file im creating and i know that all people here have a big heart to help.

    I am trying to consolidate the data from different excel sheets so i can create a dashboard. My challenge is, whenever i try to create a relationship, it keeps on saying that there are duplicate values and cannot create the relationship between tables. I tried using power query but it's just adding another column for the tables.

    What i really wanted to do is to combine all sheets into one sheet so i can create a pivot table containing all the data from different sheets. I need all data to be associated with the same employee on the same date.

    I have attached a sample file here.


    Thanks in advance.... Hoping you could help me please...... please... please...


    Thanks!
    Ae
    Attached Files Attached Files

  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,888

    Re: Combining Data from Multiple Sheets

    This can be done with PQ. You will need to load each table into PQ. For each table you will need to keep the Date, EE ID, Name and any other columns you wish to have. Remove all others. Reformat the Date column from Date/Time to Date.

    For the Voice and Email, do the above. Make sure that the column names for each of these two tables are the same. You will then need to append one to the other.

    Now starting with the first table that includes only the three items above, merge each of the tables to each other except for voice and email in which case you should use the appended table. When you merge each to the other, create a new query (merge as new). Use a left inner join. Expand each table for the fields you wish to see.

    Move the columns as required.

    Because you have lots of data (rows and columns), be very careful in your selection process. This is not a difficult problem to solve, but will take careful and meticulous planning and execution.

    You will end up with a long series of Mcodes, but this is a doable exercise.
    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
    Registered User
    Join Date
    02-28-2013
    Location
    PH
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    43

    Re: Combining Data from Multiple Sheets

    Hello Alan,

    Thank you so much for your Reply. I will try this and see the result. I appreciate your help.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Combining Data from Multiple Sheets

    @ rebecacamp

    Five pointless posts from you so far - I have my eye on you, as your behaviour is suspicious. If you have a question, start a thread, but don't add pointless posts to multiple threads. Thank you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    02-28-2013
    Location
    PH
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    43

    Re: Combining Data from Multiple Sheets

    hello @alansidman,

    I was able to rearrange the tables and tried merging the sheets. i now ran into some issues.

    I've noticed that the first few sheets that i have merged are duplicated. whenever I am adding up new merge, it duplicates the previous merged queries
    Attachment 684339

    I have attached another sample file. hoping you can take a look pls.


    Thank you in advance.
    Attached Files Attached Files

  6. #6
    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,888

    Re: Combining Data from Multiple Sheets

    1. Your Attachment (as a picture) is not visible
    2. Because all of your queries are connections only, they are not available to me. They are available only to you or others on your network.
    Attached Images Attached Images

  7. #7
    Registered User
    Join Date
    02-28-2013
    Location
    PH
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    43

    Re: Combining Data from Multiple Sheets

    hello @alansidman,

    I may have missed that part. anyway, i tried recreating a raw sample as well as the result of merge attached herewith. hope u can take a look
    Attached Images Attached Images
    Attached Files Attached Files

  8. #8
    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,888

    Re: Combining Data from Multiple Sheets

    Still cannot see your queries. You will need to load each one into your workbook instead of connections. In this manner, I will be able to review your steps and Mcode. I suspect that the issue is how you have joined your tables. Left Inner? Full Outer? Etc. I am thinking you will need to have a Left Inner but really wont be able to make sure until you provide viewable queries.

    Right click on each query. Click on Load To. Change the Connection to Table and Close and Load. Then I should be able to see each query.

+ 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 Data from Multiple sheets
    By gxm100 in forum Excel General
    Replies: 2
    Last Post: 04-05-2016, 09:47 AM
  2. Combining data from multiple sheets into one
    By koochandkai in forum Excel General
    Replies: 2
    Last Post: 05-06-2015, 12:18 PM
  3. Combining data from multiple other sheets onto one
    By kb9omaaj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-09-2014, 01:11 PM
  4. Combining Data from multiple sheets...
    By FogCat in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-16-2006, 11:35 AM
  5. Combining data from multiple sheets
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2005, 12:05 PM
  6. [SOLVED] Combining data from multiple sheets
    By Ron Vetter in forum Excel General
    Replies: 1
    Last Post: 04-29-2005, 03:06 PM
  7. combining data from multiple sheets
    By Allen Way via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-05-2005, 01:06 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