+ Reply to Thread
Results 1 to 13 of 13

Compilation of Data into Master

  1. #1
    Registered User
    Join Date
    09-16-2019
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    9

    Compilation of Data into Master

    Hi Anyone can assist? Need a solution for the following:

    To copy data from working worksheet to Master worksheet. If the cells is not empty to copy the specific cells of the row and paste into Master worksheets and loop through the database till the end.

    I.e. If working worksheet Group 1 (V,X,Y,AA) - [V is not blank] to include Column C of that particular row and copy and paste to Master worksheet: (Column C,E,D,F,J) respectively.
    After looping through Group 1 do accordingly for Group 2 - 5, depending on each column and paste accordingly to Master worksheet.


    (Compiling multiple columns into 1 and copying data if condition is met)

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Compilation of Data into Master

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    09-16-2019
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    9

    Re: Compilation of Data into Master

    HI Pepe Le Mokko,

    thanks, I have just attached. Hope it is clearer now.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Compilation of Data into Master

    Try this
    Please Login or Register  to view this content.
    ❖ Please mark your thread is SOLVED if there has been offered a solution that works fine for you.

    ❖ If you like solutions provided by anyone, feel free to add reputation by clicking on ✶ Add Reputation bottom left of their posts.

  5. #5
    Registered User
    Join Date
    09-16-2019
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    9

    Re: Compilation of Data into Master

    Thank you huuthang_bd!!!

    it works but could you explain to me, how should I derive the numeric? As I like to customize to read my actual data, which will be columns from Group 1 (V,X,Y,AA), Group 2 (AB,AD,AE,AG), Group 3(AH,AHAK,AM) Group 4 (AN,AP,AQ,AS) and Group 5 (AT,AV,AW,AY).

    Additionally, if the data supposed to be paste on to specific column like C, E,D,F,J in Master Sheet.


    Please advise.
    Thank you!
    Last edited by Magluckie; 09-16-2019 at 04:02 AM.

  6. #6
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Compilation of Data into Master

    You should have created the sample workbook has the same structure as your actual workbook
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-16-2019
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    9

    Re: Compilation of Data into Master

    Great! Thanks. Will take note on that.

    Appreciate much!

  8. #8
    Registered User
    Join Date
    09-16-2019
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    9

    [SOLVED] Re: Compilation of Data into Master

    Thank you!

  9. #9
    Registered User
    Join Date
    09-16-2019
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    9

    Re: Compilation of Data into Master

    Hi huuthang_bd,

    could you advise, why do my sample book work and for my actual data it only run but no output neither does it have any error shown.

    Thank you.

  10. #10
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Compilation of Data into Master

    Hi Magluckie,

    I can't say anything if I don't see your actual workbook.

  11. #11
    Registered User
    Join Date
    09-16-2019
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    9

    Re: Compilation of Data into Master

    Hi huuthang_bd,

    I found out why, as the working sheet have columns filled from "A - BK". Just wondering this line of code how should I amend it?

    Set CopiedRng = AllRows.Offset(, 19 + (i - 1) * 6).SpecialCells(xlCellTypeConstants, 23)

    Sorry as I am very very new to VB scripting.

    Thanks once again.

  12. #12
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Compilation of Data into Master

    Please Login or Register  to view this content.
    I will explain the numbers in this line, try amend it to suit with your data.

    19 is the number of columns from column C (AllRows variable) to column V (the first column of group 1)
    6 is the number of columns from column V (the first column of group 1) to column AB (the first column of group 2)

  13. #13
    Registered User
    Join Date
    09-16-2019
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    9

    Re: Compilation of Data into Master

    Thank you huuthang_bd once again, will amend accordingly and try it.

+ 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. Data compilation using Power Query
    By Szymon.L in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-18-2018, 08:36 AM
  2. Data compilation from many sheets to one
    By sachinyadav3672 in forum Excel General
    Replies: 1
    Last Post: 01-07-2012, 05:03 AM
  3. Data Compilation
    By mjg060468 in forum Excel General
    Replies: 6
    Last Post: 03-10-2011, 05:37 AM
  4. Help creating a master compilation sheet...
    By commoncurtise in forum Excel General
    Replies: 0
    Last Post: 11-30-2010, 07:38 PM
  5. Data Compilation
    By Rashed.R in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-14-2010, 07:29 AM
  6. Inefficient Data Compilation
    By wowzers in forum Excel General
    Replies: 11
    Last Post: 06-09-2009, 01:12 AM
  7. [SOLVED] Data compilation within a single workbook
    By Robert in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-13-2006, 07:25 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