+ Reply to Thread
Results 1 to 4 of 4

Compare two columns (different length) and pt duplicates in new column

  1. #1
    Registered User
    Join Date
    04-01-2009
    Location
    New York City
    MS-Off Ver
    Excel 2007
    Posts
    8

    Compare two columns (different length) and pt duplicates in new column

    I have two columns of data that are different lengths. I want to take the data in column A and find duplicates in Column B and then have whatever is not a duplicate in Column B show up as a list in Column C.

    I have copied the two columns of data into one sheet. Would there also be a way to do this across two sheets?

    Thanks for the help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Compare two columns (different length) and pt duplicates in new column

    Duplicates or those values in column B can be found by entering this formula

    =IF(COUNTIF(B$1:B$564,$A1),VLOOKUP($A1,B$1:B$564,1,FALSE),"")
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    04-01-2009
    Location
    New York City
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Compare two columns (different length) and pt duplicates in new column

    Can you explain how or where I enter this information? I tried entering it in column C but it does not work. Please help. Thanks

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Compare two columns (different length) and pt duplicates in new column

    Enter it in C1 then copy/paste it down column C
    Works fine in Excel 2007

    Any values in column A also in column B get copied to column C, if not a blank appears in column C.

    Once that's worked enter

    =(IF(A1=C1,"",B1))

    in D1 and copy/paste down column D. This will list the values not in column B

+ 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