+ Reply to Thread
Results 1 to 5 of 5

Data Merging

  1. #1
    Registered User
    Join Date
    07-22-2016
    Location
    Cordova
    MS-Off Ver
    2007
    Posts
    44

    Data Merging

    Hi Guys ,
    I have a workbook consist of 71 worksheet ,

    In the first column of each worksheet i have a unique serial number that duplicate for all rows in the same sheet

    In the second column of each worksheet i have a date which take from like 12/31/2017

    Now i need to delete all rows from all worksheet that contain these dates in second column
    "3/15/2017" "3/27/2017" "5/17/2017" "9/13/2017" "12/5/2017"

    << The previous part have been solved successfully >>

    As i said before each worksheet has unique serial number in first column EXCEPT the last worksheet "sheet 71"

    "sheet 71" contain a mix of all unique numbers that exist in all other worksheet , now i would like to distribute the content of "sheet 71" to other sheets depending on Unique Serial Number

    So matched Unique Serial Number will be the key factor for distibutions and merging data , How can i do that in a quick way ?

    Thanks

  2. #2
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Data Merging

    is this what you want to do?

    https://www.extendoffice.com/documen...on-column.html
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  3. #3
    Registered User
    Join Date
    07-22-2016
    Location
    Cordova
    MS-Off Ver
    2007
    Posts
    44

    Re: Data Merging

    Not exactly , this VBA code << SPLIT >> the row into new worksheet based on a certain column , However
    what i want is to << MERGE >> these rows with already existing worksheet based on the value of first column

    Let's take an example to clarify the idea

    If the Unique Number in "sheet 1" is 78902 , then i must look for and select all rows in "sheet 71" that contain 78902 and move these rows from "sheet 71" to "sheet 1"

    If the Unique Number in "sheet 2" is 120546 , then i must look for and select all rows in "sheet 71" that contain 120546 and move these rows from "sheet 71" to "sheet 2"

    and so on .....

    Note :: For all worksheet , Column A is assigned to record Unique Number which duplicate for all rows in the same worksheet with no change , in addition to that Unique Number cannot be the same for two different worksheet
    Last edited by Sasha 99; 01-22-2018 at 11:52 PM.

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Data Merging

    run in attached workbook with {CTRL} t

    How code works

    - sheet "References" contains an index of unique references
    (my test references are different to the ones you specified)
    - data in sheet 71 is filtered by each reference & data copied to relevant sheet
    - during testing the deleted rows are copied to another sheet (can re-use as test data)
    - only 5 "data" sheets in demo worksheet
    - results of my test are in blue font on sheets 1 to 5

    I have added procedure CreateSheetList to help you create the list of relevant sheets to add each reference against

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  5. #5
    Registered User
    Join Date
    07-22-2016
    Location
    Cordova
    MS-Off Ver
    2007
    Posts
    44

    Re: Data Merging

    That's so generous and kind from you Kev , I tested the code and it work properly
    Thank you very much

+ 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: 1
    Last Post: 11-02-2017, 09:20 PM
  2. combining company data and merging/summing up data from certain columns
    By bottledwater in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-13-2016, 10:05 AM
  3. Replies: 6
    Last Post: 08-08-2013, 06:50 PM
  4. Replies: 4
    Last Post: 01-16-2013, 10:06 PM
  5. Merging: displaying which sheet data comes from when merging sheets
    By zed commander in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-12-2012, 12:20 PM
  6. Replies: 1
    Last Post: 04-09-2012, 09:21 AM
  7. Merging cells/merging cell content.
    By rhintintin in forum Excel General
    Replies: 3
    Last Post: 09-23-2010, 10:42 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