+ Reply to Thread
Results 1 to 8 of 8

how to match data from two almost identical lists

  1. #1
    Registered User
    Join Date
    08-20-2009
    Location
    Costa Rica
    MS-Off Ver
    Excel 2003
    Posts
    5

    how to match data from two almost identical lists

    Hi everyone,

    I'm no expert with excel and I'm working on two almost identical lists but because of their nature, some rows are repeated on one of the sheets and so on. I need help matching some cells onto the other sheet. I tried the VLOOKUP formula but it doesn't work since some rows are repeated... I need the match to link especifically a Name with it's correspondent Value, regardless of the position of the name in either of the sheets and whether it is repeated or not.

    Any help will be much appreciated!!!!!
    Last edited by NBVC; 08-26-2009 at 03:52 PM.

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

    Re: how to match data from two almost identical lists

    To match one cell to one vertical column of cells, use:

    =Isnumber(Match(A1,Sheet2!A:A,0)) which will return TRUE if match found...

    if you want to match to cells with 2 vertical columns...

    =ISNUMBER(MATCH(1,INDEX((Sheet2!$A$2:$A$10=A2)*(Sheet2!$B$2:$B$10=B2),0),0)) where you must use defined ranges instead of A:A...

    If you are looking to return data from another column.. where exact match is found in 1st or 1st and 2nd columns.. then use Index() around either of the above..

    e.g.

    =Index(C:C,atch(A1,Sheet2!A:A,0))

    or

    =Index($C$1:$C$10,MATCH(1,INDEX((Sheet2!$A$2:$A$10=A2)*(Sheet2!$B$2:$B$10=B2),0),0))
    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
    08-20-2009
    Location
    Costa Rica
    MS-Off Ver
    Excel 2003
    Posts
    5

    Question Re: how to match data from two almost identical lists

    Thank you very much!

    However, I think I'm a bit lost so I will try to give a better example of what I'm aiming at. Basically what I would like to do is copy the coordinates available on sheet 2 to their corresponding Engagement on sheet 1. When there's an Engagement on Sheet 1 that doesn't match up with any on Sheet 2, would like it to return either blank or "missing" or something like that.

    I've attached a workbook as an example.

    Please note that there are several differences between sheet 1 and 2:
    - The Engagement list on both sheets is similar, but not identical:
    - The Engagements don't follow the same order on Sheet 1 and 2
    - Sheet 2 may have some engagements repeated on several rows, whereas on Sheet 1 you will find them only once.
    - There are some Engagements on Sheet 1 that won't appear on Sheet 2.
    - Sheets 1 and 2 don't have the same column position for latitude and longitude.

    I appreciate any help you can give to resolve this!
    Attached Files Attached Files

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

    Re: how to match data from two almost identical lists

    Try:

    =IF(ISNUMBER(MATCH($A2,Sheet2!$A$1:$A$6,0)),VLOOKUP($A2,Sheet2!$A$1:$E$6,4,0),"")

    in B2

    and

    =IF(ISNUMBER(MATCH($A2,Sheet2!$A$1:$A$6,0)),VLOOKUP($A2,Sheet2!$A$1:$E$6,5,0),"")

    in C2

    both copied down.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: how to match data from two almost identical lists

    In B2 Copied down
    Please Login or Register  to view this content.
    In C2 copied down
    Please Login or Register  to view this content.
    Modify your ranges to suit your spreadsheet. Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Registered User
    Join Date
    08-20-2009
    Location
    Costa Rica
    MS-Off Ver
    Excel 2003
    Posts
    5

    Thumbs up Re: how to match data from two almost identical lists

    Oh wow! Worked great on that example workbook! Will test it out tomorrow at the office on the real workbook. I'll be posting the results then.

    Thanks so much, owe you a beer!

  7. #7
    Registered User
    Join Date
    08-20-2009
    Location
    Costa Rica
    MS-Off Ver
    Excel 2003
    Posts
    5

    Thumbs up Re: how to match data from two almost identical lists

    The formula worked perfectly on the sheet. Thanks a lot!

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

    Re: how to match data from two almost identical lists

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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