+ Reply to Thread
Results 1 to 6 of 6

Checking one list against another list

  1. #1
    Registered User
    Join Date
    03-10-2008
    Posts
    20

    Checking one list against another list

    I have two columns of names. I want to be able to tell if a name in column A is in column b and I also want to know if a name in column b is in column A.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try these in adjacent columns, copied down. TRUE results mean matches found.

    =ISNUMBER(MATCH(A1,B:B,0))

    AND

    =ISNUMBER(MATCH(B1,A:A,0))

    assuming data starts in row 1.
    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
    Registered User
    Join Date
    03-10-2008
    Posts
    20
    That was simple enough. Next question: I want check and flag any repeats in column A, but delete any repeats in column B.

    Also, I combined the names like this: LastnameFirstname. However, some have commas after the last name. Is there an easy way to parse through the list and remove the commas?

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

    Please post 2 new thread in appropriate forums to address the questions.

  5. #5
    Registered User
    Join Date
    03-10-2008
    Posts
    20
    The first thing you suggested is working fine. I check the cell in column B vs all of column A, and it seems to work.

    However, when I try to do the reverse, check the cell in column A vs all of column B, I get the wrong results. It shows up as false when it should be true.

    Column A is significantly longer than column B, so I tried to reverse them, and that didn't work, and I also tried making a copy of both columns and then putting the formula in right next to it, and that didnt help either. I also tried reversing the columns, and that didn't help either. Any ideas?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Then there probably are differences.. check for extra spaces...

    If you have numeric data, make sure the columns are formatted to General...

+ 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