+ Reply to Thread
Results 1 to 11 of 11

copy data from multiple sheets to sheet summary vertically

  1. #1
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    copy data from multiple sheets to sheet summary vertically

    hi all
    I have data in all sheets except summary so I put the result in sheet summary how the data should be based on selected cell in d1
    I put more explanation inside the file if it's not clear please let me know
    Attached Files Attached Files
    Last edited by ABDELFATTA; 02-24-2021 at 09:47 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: copy data from multiple sheets to sheet summary vertically

    You can use a custom UDF.
    The formula in B5 would be
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    notice the relevant and absolute references in the formula.

    Please Login or Register  to view this content.
    2021-02-24_8-13-51.jpg


    Vlookup would work just fine as well, but you would have to hardcode each sheet range or find a way to use indirect for the sheet names

  3. #3
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: copy data from multiple sheets to sheet summary vertically

    thanks daves but I prefer by code I know this is not easy i hope somebody see my post

  4. #4
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: copy data from multiple sheets to sheet summary vertically

    any helps, experts?

  5. #5
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: copy data from multiple sheets to sheet summary vertically

    Hi ABDELFATTA,

    Try below code ...
    Please Login or Register  to view this content.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  6. #6
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: copy data from multiple sheets to sheet summary vertically

    @nankw83 the code is perfect but there still thing missed so when clear d1 should bring all the data and if i select another item should copy to the bottom not replace the old data have already searched

  7. #7
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: copy data from multiple sheets to sheet summary vertically

    If cell D1 is cleared you want to bring all data ? And if you filter D1 again it will add the filtered data at the bottom ? (which is already there) I don't see how that is beneficial for you Logically, it is either used as filter like my previous code or all at once but can't understand how merging both options do any good for you

  8. #8
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: copy data from multiple sheets to sheet summary vertically

    please check my file I put the expected result in sheet "result1" when d1 is empty what can happen and in sheet "result2" when I select every time
    Attached Files Attached Files

  9. #9
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: copy data from multiple sheets to sheet summary vertically

    If cell D1 is cleared, should the macro delete all rows then bring everything back again or bring all data from the sheets & append under existing data in summary sheet ?

  10. #10
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: copy data from multiple sheets to sheet summary vertically

    If cell D1 is cleared, should the macro delete all rows then bring everything back again
    as for if select item in D1 every time then bring all data from the sheets & append under existing data in summary sheet

  11. #11
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: copy data from multiple sheets to sheet summary vertically

    another way guys, please?

+ 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. Copy data from master sheet to a multiple new sheets
    By pro1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-13-2020, 04:30 PM
  2. [SOLVED] Copy and paste data from multiple sheets to a Master sheet
    By Aoleone# in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-05-2019, 09:02 PM
  3. Copy data from multiple sheets to one editable master sheet
    By kateb84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2017, 09:22 AM
  4. Excel vba to copy data from multiple sheets to one master sheet
    By scorpion01 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-01-2017, 05:43 AM
  5. [SOLVED] Automatically Copy Data from Multiple Sheets to a Master Sheet
    By Ryan_Brandt in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-10-2014, 06:45 AM
  6. [SOLVED] Copy Data From Master Sheet to Multiple Sheets
    By dmmr in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-06-2013, 11:28 AM
  7. [SOLVED] Macro to copy data from multiple sheets to one (new) master sheet
    By nhtodd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-24-2012, 02:30 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