+ Reply to Thread
Results 1 to 3 of 3

Data Matching

  1. #1
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro 2003 / 2010
    Posts
    423

    Data Matching

    Hi,

    I have two identical worksheets Sheet 1 & Sheet 2 with a columns of reference numbers starting in B2 on both sheets.

    Could someone give me a macro to run down Sheet2 and if the ref number in B2 does not exist on Sheet1 copy the whole row to Sheet3?

    Thanks

  2. #2
    Registered User
    Join Date
    12-02-2011
    Location
    Roeselare, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Data Matching

    Try putting a VLOOKUP in the last column of Sheet2. =IF(ISERROR(VLOOKUP(B2;Sheet1!B:B;1;FALSE));"X";"")
    Then loop the last column and look for X.

    If X, copy the row.

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Data Matching

    maybe:

    Please Login or Register  to view this content.
    Though a sample workbook would help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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