+ Reply to Thread
Results 1 to 6 of 6

Copy Data From 3 Worksheets into a 4th Worksheet

  1. #1
    Forum Contributor
    Join Date
    10-08-2012
    Location
    San Clemente, California
    MS-Off Ver
    Office365
    Posts
    383

    Copy Data From 3 Worksheets into a 4th Worksheet

    I have three worksheets with different data. All three share one common field “Alpha.” I need to copy “Alpha” to the fourth worksheet along with one other column of data. But that other data varies between the three worksheets.

    • From Sheet1 I need to copy Non-Blank instances of “Alpha” plus “Bravo” to Sheet4
    • From Sheet2 I need to copy Non-Blank instances of “Alpha” plus “Charlie” to Sheet4
    • From Sheet3 I need to copy Non-Blank instances of “Alpha” plus “Delta” to Sheet4

    The attached worksheet illustrates.

    All four worksheets have varying and unknown numbers of data rows.

    All four worksheets have the data in tables (ListObjects). I don’t think this matters but it may be helpful to know.

    When Sheet4 is activated we first need to clear all content in Alpha, Bravo, Charlie and Delta columns without disturbing other columns that have formulas. Because I am using Tables, it is possible to delete all rows except the first data row that contains the formulas (when new data is pasted the formulas automatically fill in).

    Thanks in advance for your time and consideration.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Copy Data From 3 Worksheets into a 4th Worksheet

    Hello,

    See if this code helps

    Please Login or Register  to view this content.
    Thanks

  3. #3
    Forum Contributor
    Join Date
    10-08-2012
    Location
    San Clemente, California
    MS-Off Ver
    Office365
    Posts
    383

    Re: Copy Data From 3 Worksheets into a 4th Worksheet

    Hi fredlo2010,

    All four of the worksheets exist already and all have headings too. I will take a look at the code tonight.

    Thanks!

  4. #4
    Forum Contributor
    Join Date
    10-08-2012
    Location
    San Clemente, California
    MS-Off Ver
    Office365
    Posts
    383

    Re: Copy Data From 3 Worksheets into a 4th Worksheet

    Here's some more info, fredlo2010.

    As we cycle through the ws the input columns is not identical so the For Each won't work. I can get around that by declaring each copying separately.

    But there are a couple other problems, too. First, we need to clear the contents of Alpha, bravo, charlie and delta on the final ws before pasting new content, keeping in mind that there are a dozen other columns containing formulas.

    Finally, we need to sort Final by Alpha number on the Final ws.

    I am clueless about the function appended.

    Please let me know if I have raised more questions!

    Thanks again.

  5. #5
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Copy Data From 3 Worksheets into a 4th Worksheet

    I am sorry snapfade I am not able to find a solution with the updated information.

    Sorry about that

  6. #6
    Forum Contributor
    Join Date
    10-08-2012
    Location
    San Clemente, California
    MS-Off Ver
    Office365
    Posts
    383

    Re: Copy Data From 3 Worksheets into a 4th Worksheet

    no worries...thanks for trying.

+ 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. macro to copy data from 3 worksheets in one worksheet
    By iscar_marius in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-30-2013, 11:39 PM
  2. issue: using macros to copy certain data from 1 worksheet to 6 or more other worksheets
    By timothystow in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-05-2013, 02:11 PM
  3. [SOLVED] Copy data from several worksheets to one existing worksheet
    By e.nekram in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-22-2012, 07:17 AM
  4. Copy data from multiple worksheets & paste into one worksheet.
    By Rodders in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-10-2012, 11:54 AM
  5. Replies: 6
    Last Post: 09-21-2011, 10:09 AM

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