+ Reply to Thread
Results 1 to 6 of 6

Checking non-duplicates in column A across 2 sheets

  1. #1
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Greece
    MS-Off Ver
    Office 365
    Posts
    133

    Checking non-duplicates in column A across 2 sheets

    I have a workbook with 2 sheets. What I want is:

    1. Cells in column A, Sheet 2 are compared with the Cells in column A, Sheet 1.

    2. Sheet 3 is produced containing all the rows in Sheet 2 for which there is no duplicate cell in Column A, Sheet 1.

    3. The rows copied from Sheet 2 to Sheet 3 are highlighted on Sheet 2.

    Attached is a workbook with 3 sheets. Sheet 3 is the desired result (+ the cell highlighting on non-duplicates on Sheet 2).
    Attached Files Attached Files
    Last edited by greek; 09-03-2009 at 08:48 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Checking non-duplicates in column A across 2 sheets

    Insert a row above Row 1 in Sheet 2

    Then in D2, enter formula:

    =ISNUMBER(MATCH(A2,Sheet1!A:A,0))

    copy down.

    TRUE means an exact match was found....note one of those you said would match does not because of the lack of a dash in Sheet1...be aware of these...

    Then select columns A:D in Sheet2 and go to Data|Filter|AutoFilter

    select down arrow in column D and choose True.

    Now copy those rows in Sheet3.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Greece
    MS-Off Ver
    Office 365
    Posts
    133

    Re: Checking non-duplicates in column A across 2 sheets

    Thanks, when I enter the formula I get: "The formula you typed contains an error".

    http://img524.imageshack.us/img524/9...0902233747.png
    http://img30.imageshack.us/img30/297...0902233800.png
    Last edited by greek; 09-02-2009 at 04:44 PM.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Checking non-duplicates in column A across 2 sheets

    Try with ;

    =ISNUMBER(MATCH(A2;Sheet1!A:A;0))

  5. #5
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Greece
    MS-Off Ver
    Office 365
    Posts
    133

    Re: Checking non-duplicates in column A across 2 sheets

    Cool it works

    Only that I have to select FALSE at the end to display non-duplicates.

  6. #6
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Greece
    MS-Off Ver
    Office 365
    Posts
    133

    Re: Checking non-duplicates in column A across 2 sheets

    Is there any way to stop this macro from recalculating every time I make a change? It tends to recalculate very often and it becomes very slow in sheets with 60,000+ rows.

+ 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