+ Reply to Thread
Results 1 to 7 of 7

Combined all data from 4 sheets to another sheet as consolidated

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Lightbulb Combined all data from 4 sheets to another sheet as consolidated

    Dear all,

    as per attached i want to copy data from 4 sheets to sheet name "all".

    Rows of each sheets can be increased or decresed every time.. I want copy all data till the last row and paste in sheet all.

    Could you please suggest any vba or other way.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,404

    Re: Combined all data from 4 sheets to another sheet as consolidated

    Here is how to do it with PowerQuery: https://www.youtube.com/watch?v=YOC-pEIuHpA
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: Combined all data from 4 sheets to another sheet as consolidated

    Thanks AliGW for your reply, you have a way to learn it. But i am not good in excel. could you or any one else can give me a VBA. thanks.

    Actually it is not an amount or numbers to combined..

    I want all text or numbers same format from all sheets to be copied and paste in sheet "ALL"

    Thanks
    Last edited by tariqnaz2005; 08-23-2020 at 07:54 AM.

  4. #4
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: Combined all data from 4 sheets to another sheet as consolidated

    Hello all,

    actually i want to past all date from all 4 sheets, text or numbers any type, and past in sheet "ALL"... pls help me

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Combined all data from 4 sheets to another sheet as consolidated

    As Ali indicated earlier. Power Query is the way to go. Here is a file with all your data and the Mcode that did that.

    let
        Source = Table.Combine({aicg, gmtc, ubic, ustc})
    in
        Source
    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

  6. #6
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: Combined all data from 4 sheets to another sheet as consolidated

    dear alan,

    its looks worked, but since i dont have any idea how to run it or how to use mcode.. for me its a simple sheet only. dont know what to do and how to run it again. kindly help to explain

    also below error is giving on opening

    An error occurred in the ‘aicg’ query. DataSource.Error: Could not find a part of the path 'C:\Users\alans\Downloads\sample file for copy sheets data.xlsx'.
    Details:
    C:\Users\alans\Downloads\sample file for copy sheets data.xlsx
    Last edited by tariqnaz2005; 08-30-2020 at 03:31 PM.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Combined all data from 4 sheets to another sheet as consolidated

    You need to change the path to where your file is located. The error you are seeing is because you don't have access to my computer where the file was located when I retrieved the data to bring into Power Query. I used the same technique described in the video Ali presented to you. Follow it using your data file and it should result in the same output. All I did was bring each sheet into PQ and then append each to the other.

+ 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] 2 Sheets data combined into output sheet with match 1 field common
    By AaruJaan in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 05-24-2019, 03:00 PM
  2. [SOLVED] Macro to consolidated all data from different sheets to summary sheet in the same workbook
    By rochakmehta90 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-17-2013, 03:10 AM
  3. Correcting consolidated Sheet that auto corrects all other sheets.
    By TERRI LEE in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 05-06-2013, 02:35 AM
  4. [SOLVED] Create consolidated dynamic sheet from several sheets (pull data)
    By G.Bregvadze in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-23-2013, 03:27 PM
  5. [SOLVED] Consolidated data from 3 worksheets and populate to another sheets
    By uky in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 03-21-2013, 10:23 PM
  6. Copy non-sequential columns with headers (from multiple sheets) to one consolidated sheet
    By constantmallee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2012, 02:24 PM
  7. [SOLVED] Date in Consolidated sheet does not match date in sheets being consolidated
    By Lowtech in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-15-2012, 07:23 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