+ Reply to Thread
Results 1 to 9 of 9

Consolidate data from 4 sheets into 1 consolidated sheet

  1. #1
    Registered User
    Join Date
    07-08-2017
    Location
    Minnesota
    MS-Off Ver
    Microsoft Office 2016
    Posts
    78

    Consolidate data from 4 sheets into 1 consolidated sheet

    Hello,

    Can someone help clarify how I can consolidate the first four sheets of data in attached workbook by copying and pasting them into the "Consolidated" sheet directly below each data set? I can not seem to figure it out because the number of rows in each sheets (Name1, Name2, Name3, Name4) can vary so that would change the particular row you are pasting the data into on the "Consolidated" sheet?

    Thank you!
    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 insider Version 2504 Win 11
    Posts
    24,678

    Re: Consolidate data from 4 sheets into 1 consolidated sheet

    You have not provided any sample data to demonstrate. Please provide same with sample data so that a realistic solution can be presented.
    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
    07-08-2017
    Location
    Minnesota
    MS-Off Ver
    Microsoft Office 2016
    Posts
    78

    Re: Consolidate data from 4 sheets into 1 consolidated sheet

    Please see attached. 7 rows on first tab, 23 rows on second tab, 11 rows on third tab, 7 rows on fourth tab. All should be copy and pasted below each other on Consolidated tab so it can then be pivoted.

    Total Consolidated data would consist of 48 rows in this example
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: Consolidate data from 4 sheets into 1 consolidated sheet

    Are you still using Excel 2016?

    With 365 you can use this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Registered User
    Join Date
    07-08-2017
    Location
    Minnesota
    MS-Off Ver
    Microsoft Office 2016
    Posts
    78

    Re: Consolidate data from 4 sheets into 1 consolidated sheet

    oh my gosh.. that is amazing. Did not realize you could do this with a formula. Thank you!

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

    Re: Consolidate data from 4 sheets into 1 consolidated sheet

    With Power Query, Append the tables.
    1. Highlight each range and convert to a Table.
    2. Apply the Mcode as shown in the Power Query Editor.
    3. Close and Load

    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-08-2017
    Location
    Minnesota
    MS-Off Ver
    Microsoft Office 2016
    Posts
    78

    Re: Consolidate data from 4 sheets into 1 consolidated sheet

    Does the formula need to be adjusted if I put actual names in for the tabs and not using "Name1" through "Name4"?

    I typed in names for those sheets as Ryan, Tim, Annie, Kelsey and the formula does not work now

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: Consolidate data from 4 sheets into 1 consolidated sheet

    Quote Originally Posted by Hoover5896 View Post
    Does the formula need to be adjusted if I put actual names in for the tabs and not using "Name1" through "Name4"?

    I typed in names for those sheets as Ryan, Tim, Annie, Kelsey and the formula does not work now
    Ok, two things:

    1. Name1 needs to be replaced by the name on the first (leftmost sheet) name. In this case, Ryan. Name4 needs to be replaced by the last (rightmost before the Consolidated sheet. In this case, Lucy.
    2. If the sheet/tab names have spaces, then you need to use single quotes to surround the sheet names.

    For example:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by TMS; 05-14-2024 at 04:01 PM.

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: Consolidate data from 4 sheets into 1 consolidated sheet

    Quote Originally Posted by Hoover5896 View Post
    oh my gosh.. that is amazing. Did not realize you could do this with a formula. Thank you!


    You're welcome. Thanks for the rep.

+ 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. Replies: 17
    Last Post: 05-26-2024, 07:40 AM
  2. Replies: 2
    Last Post: 05-25-2021, 08:25 AM
  3. Copy data from multiple sheets to a consolidated sheet.
    By kayslover in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2021, 08:48 AM
  4. Replies: 6
    Last Post: 08-30-2020, 03:51 PM
  5. [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
  6. [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
  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

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