+ Reply to Thread
Results 1 to 5 of 5

copy duplicate data from two workbooks into new workbook

Hybrid View

  1. #1
    Registered User
    Join Date
    09-23-2008
    Location
    Toronto
    Posts
    2

    Question copy duplicate data from two workbooks into new workbook

    Hey,

    Sorry about thread title, didn't know what function to use to put in the title. I have an issue I can't seem to resolve. This is the scenario:

    I have two workbooks open. Column A of workbook1 and column C of workbook2 both contain 'Product ID' numbers. Workbook1 column A has 507 entries while workbook2 column C has 28277 entries (majority of the numbers duplicated). What I'm trying to do is have all the entries in workbook2 Column C that match workbook1 Column A copied and pasted into a new sheet in workbook2.

    Plus, is it possible to have columns a to r besides C copied onto that new sheet? For example: A number in Column C of workbook2 matches a number in Column A of workbook1. The entire row in workbook2 that contains the matched number will be copied to the new sheet in workbook2.

    I'm so lost on this, I'd really appreciate any help. Thanks a lot!

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Hi getfunky, welcome to the forum.

    I'm glad you read and are aware of the forum rule regarding threat titles, but please change it to anything that might seem appropriate. Something along the lines of "copy duplicate data from two workbooks into new workbook" would be better than what you have currently.

  3. #3
    Registered User
    Join Date
    09-04-2008
    Location
    Sydney, Australia
    Posts
    9
    I have a Servers consolidation report I use to clarify a consilidated list from muiltple lists, I have removed the consolidation component. You might be able to use some of these formulas to assist it this. See attached sheet.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    1. Copy the whole sheet of data in workbook2 to a new sheet
    2. add a new column beside the Product ID
    3. Insert formula to D1 of "Match" , =match(C1,"product id"on workbook1,0)
    4. Copy the formula down
    5. You can see there are many cells with a "#N/A" result
    6. Select all the range, sort by the new column D, then delete all the rows with a "#/A" result
    7. After checking your data, delete the new column
    Ok, the rest rows are what you need
    I need your support to add reputations if my solution works.


  5. #5
    Registered User
    Join Date
    09-23-2008
    Location
    Toronto
    Posts
    2
    Thanks for the help!

+ 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 sheet1 into sheet2 in same workbook.
    By johngombola in forum Excel General
    Replies: 3
    Last Post: 05-03-2012, 05:13 AM
  2. Copy worksheets to new workbook
    By Edward HS in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-29-2008, 07:16 PM
  3. Copy data from one large worksheet to multiple workbooks
    By richzip in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2008, 02:05 PM
  4. Import data from workbooks - advanced!
    By bgloster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-07-2007, 03:16 PM
  5. How to Copy rows which match criteria into a new workbook and format it
    By ndunross in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2007, 04:54 PM

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