+ Reply to Thread
Results 1 to 7 of 7

Vba code to consolidate multiple sheets to one

  1. #1
    Registered User
    Join Date
    07-06-2015
    Location
    India
    MS-Off Ver
    PC 2016
    Posts
    87

    Vba code to consolidate multiple sheets to one

    Hi Team,
    I am looking for a consolidating macro which will consolidate multiple sheets data into one.I have arange of sheets from As tp XC and consolidated sheet to collect information.There are 3 sections in the sheet
    1overall capacity
    2H&M capacity
    3 fixed capacity-This formulized.
    When the data will be filled for all the projects for the first two phases then in consolidated sheet I require the
    overall capcity and H&M to capture resourcewise summary of total hours across all projects.
    Fixed will be automatically calculated.Pls suggest how to do that.

    Regards,
    Aps
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vba code to consolidate multiple sheets to one

    Here's one approach, using Power Query, then summarising your data in a pivot table:

    WorkbookData:
    Please Login or Register  to view this content.
    fnTransformSheet:
    Please Login or Register  to view this content.
    See attached file for worked example.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    07-06-2015
    Location
    India
    MS-Off Ver
    PC 2016
    Posts
    87

    Re: Vba code to consolidate multiple sheets to one

    Hi
    I am new to power query never used it before>Can u please let me know how to use this code.

    Regards
    Aps

  4. #4
    Registered User
    Join Date
    07-06-2015
    Location
    India
    MS-Off Ver
    PC 2016
    Posts
    87

    Re: Vba code to consolidate multiple sheets to one

    Hi Team,

    Is there any other way to do this?Pls help

    Regards,
    Aps

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vba code to consolidate multiple sheets to one

    Quote Originally Posted by aparnawangu View Post
    I am new to power query never used it before>Can u please let me know how to use this code.
    Which Excel version are you using?

  6. #6
    Registered User
    Join Date
    07-06-2015
    Location
    India
    MS-Off Ver
    PC 2016
    Posts
    87

    Re: Vba code to consolidate multiple sheets to one

    Hi,
    I am using 2016
    If you can guide me that where i have to insert these two separate codes it would be of great help

  7. #7
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Vba code to consolidate multiple sheets to one

    Data > Get Data > From Other Sources > Blank Query

    In the Query Editor window, select Advanced Editor and paste the query code. Rename the query appropriately.

    Have a look at the queries in the file I attached, and try editing them: click Data > Queries & Connections, then select the query in the Queries & Connections pane. Right click for options, including 'Edit'

+ 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. Consolidate Multiple Sheets into Two Master Sheets
    By bchampeau in forum Excel General
    Replies: 5
    Last Post: 01-30-2017, 03:57 PM
  2. Consolidate multiple sheets
    By simonexcelhelp in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-30-2015, 03:47 AM
  3. VBA Code to consolidate sheets from multiple workbooks into one workbook
    By d247 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-10-2014, 02:53 AM
  4. VBA code to consolidate coloumns in muliple sheets into multiple coloumns in one sheet?
    By BrettRCourtney in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2013, 09:17 AM
  5. [SOLVED] VBA code to consolidate coloumns in muliple sheets into multiple coloumns in one sheet?
    By BrettRCourtney in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-13-2013, 06:19 AM
  6. Consolidate multiple sheets
    By scottb in forum Excel General
    Replies: 10
    Last Post: 06-16-2010, 05:01 AM
  7. [SOLVED] Modification to code to consolidate two sheets...
    By Darin Kramer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-22-2006, 01:40 AM

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