+ Reply to Thread
Results 1 to 6 of 6

copy all sheets data into one sheet

  1. #1
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    copy all sheets data into one sheet

    Hi,

    I have data on multiple sheets and would like to copy all the data into one sheets.

    At the moment I'm using the following code to "hard code" each sheet.

    Please Login or Register  to view this content.
    However, its a little time consuming as I have to explicitly list all sheets individually.

    I would like to modify this my approach so that its more dynamic and automatically copies all the sheets without me having to specify it.

    I've attached a sample worksheet of my work and data.
    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,668

    Re: copy all sheets data into one sheet

    Power Query Solution

    Load each table/range into PQ Editor and then Append to each other

    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
    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 Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: copy all sheets data into one sheet

    There's also a mistake in you formula... sheet 4's length is being determined by the length of what's in sheet 3.

    Use:

    =LET(a,VSTACK(Sheet2:Sheet4!A1:C20),FILTER(a,INDEX(a,,1)<>""))

    Change the red bit to whatever is future-proof.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,404

    Re: copy all sheets data into one sheet

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

  5. #5
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Re: copy all sheets data into one sheet

    Thank you all for your response. Glennn approach is what I was looking for.

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

    Re: copy all sheets data into one sheet

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Compare two sheets and copy data from sheet to another.
    By HXIO in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2018, 07:03 AM
  2. [SOLVED] automatically copy data from different sheets and sequentially copy to another sheet
    By darbar76528 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-13-2017, 02:12 PM
  3. Replies: 4
    Last Post: 08-03-2017, 04:31 PM
  4. Copy data from several sheets to one sheet
    By kasun in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2015, 12:23 AM
  5. Replies: 0
    Last Post: 09-16-2015, 01:18 PM
  6. [SOLVED] copy data from various sheets into one sheet
    By vik in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-14-2006, 03:20 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