+ Reply to Thread
Results 1 to 9 of 9

Matching two pairs of cells between two lists

  1. #1
    Registered User
    Join Date
    09-13-2013
    Location
    OTTAWA, CANADA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Matching two pairs of cells between two lists

    Hello,

    I have a long master list of registered members,
    column C has last name, column D has join date.

    Now I have a short list of last names with join dates.

    I want to compare the short list with the master list to find names that are already there, by comparing the last name and join date.



    Tks
    Pierre

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Matching two pairs of cells between two lists

    Hi Pierre & Welcome to the Forum,

    Here is one of the easiest ways with using concatenation...

    E2 copied down >> =C2&D2
    F2 copied down >> =MATCH(E2,$J$2:$J$3,0)
    J2 copied down >> =H2&I2

    In Column F, the number represents the ordinal position in which a match is found from the range J2:J3

    C
    D
    E
    F
    G
    H
    I
    J
    1
    Name Join Date Combined Match Name Join Date Combined
    2
    Jack
    9/13/2012
    Jack41165
    1
    Jack
    9/13/2012
    Jack41165
    3
    Jill
    9/14/2012
    Jill41166
    #N/A
    John
    9/15/2012
    John41167
    4
    John
    9/15/2012
    John41167
    2
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    09-13-2013
    Location
    OTTAWA, CANADA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Matching two pairs of cells between two lists

    Never mind, I bad, had the range =MATCH(E2,$J$2:$J$3,0) set up wrong.
    ..........................................s/b =MATCH(E2,$J$2:$J$37,0)

    Thank you, your solution is elegant by it's simplicity.

    How ever, I don't know why but of the 12 short list records, 2 are flagged as matched, but 4 other that should show matched are not.

    the Green background are ok, the yellow background does not work for some reason.

    I have attached the sample file.

    Thanks again
    Pierre
    Attached Files Attached Files
    Last edited by pierre86; 09-13-2013 at 07:58 PM.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Matching two pairs of cells between two lists

    Looks like you need to expand the match range...

    =MATCH(E2,$J$2:$J$13,0)

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Matching two pairs of cells between two lists

    Try in F2, then copy down.

    =COUNTIFS(H$2:H$13,C2,I$2:I$13,D2)>0

    TRUE means, matched.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Registered User
    Join Date
    09-13-2013
    Location
    OTTAWA, CANADA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Matching two pairs of cells between two lists

    Thank you, Haseeb, works well and looks good too, and Jeffrey you are great too!!!

    :-D

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Matching two pairs of cells between two lists

    You're welcome…glad you have a workable solution and thanks for the feedback...

    Haseeb is indeed light years ahead of me with the formulas...Thanks Haseeb

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  8. #8
    Registered User
    Join Date
    09-13-2013
    Location
    OTTAWA, CANADA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Matching two pairs of cells between two lists

    For whom might be reading this in the future, if you apply
    =MATCH(E2,$J$2:$J$13,0) to the main list
    then to the secondary list you reverse the "E" and "J" in the formula
    =MATCH(J2,$E$2:$E$13,0)

    You then get the matching list of names to line up. ;-)

    See attached
    Pierre

  9. #9
    Registered User
    Join Date
    09-13-2013
    Location
    OTTAWA, CANADA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Matching two pairs of cells between two lists

    here is the file
    Attached Files Attached Files

+ 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. Matching Pairs
    By Jordans121 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-24-2013, 04:20 PM
  2. [SOLVED] finding matching pairs
    By dave wagner in forum Excel General
    Replies: 2
    Last Post: 07-12-2011, 02:28 AM
  3. Replies: 10
    Last Post: 01-05-2011, 03:26 AM
  4. Matching pairs of data
    By sjgeewhiz in forum Excel General
    Replies: 3
    Last Post: 12-31-2008, 02:31 PM
  5. Matching and Sorting Non-Identical Row Pairs
    By biggobot23 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2008, 08:18 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