+ Reply to Thread
Results 1 to 6 of 6

Combine and Compare two Lists

  1. #1
    Registered User
    Join Date
    06-03-2013
    Location
    Seattle
    MS-Off Ver
    Excell 2010
    Posts
    3

    Combine and Compare two Lists

    Hello,

    I'm trying to compare and combine two lists together. I have two worksheets with two columns each. Worksheet 1 column A is a list of devices. Column B is a list of names associated with those devices. On worksheet 2, column A is a more-encompasing list of devices that overlaps column A from the first worksheet. Column B is also a list of names that is longer and more encompasing than column B.

    Column B in worksheet 1 is empty, and needs to be populated from worksheet 2. But since worksheet 2 has so much more data in it, I'm not sure how to compare and combine them without doing it one at a time..

    Sorry if this is a totally novice quesiton, I found some VBA code on comparing lists but nothing I have tried has worked so far.

    Thanks.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Combine and Compare two Lists

    Suggest you post some examples of the data in both sheets so that we can give you a good response. Not enough information to form response.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-03-2013
    Location
    Seattle
    MS-Off Ver
    Excell 2010
    Posts
    3

    Re: Combine and Compare two Lists

    The data in column A of both sheets is alpha numeric and contains dahes (-), spaces, and is always less than 20 characters. The data in column B is also alpha numeric and contains dashes as well as this symbol " | ", spaces, and can be up to 60 characters.

    Example data in column A:
    TYDIX-4780A
    SAPSLDZ-7599-928B
    GRDOLP1
    VMCS87997

    Example data in column B:
    Voice
    CORE-SERVICE | 555-5555
    SUPPORT EX | 555-5555

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Combine and Compare two Lists

    Okay, now we know what the first worksheet looks like. How about the second worksheet? You indicated that the data in Column A in worksheet two was more encompassing. We need to see what the corresponding data would look like. Until we see a full picture, there is no solution. Help us to help you by giving us all the relevant details.

  5. #5
    Registered User
    Join Date
    06-03-2013
    Location
    Seattle
    MS-Off Ver
    Excell 2010
    Posts
    3

    Re: Combine and Compare two Lists

    The second worksheet is the same as far as what the data looks like, there are just many many more entries, around 1100 compared to 200 in the first worksheet.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Combine and Compare two Lists

    In column B of the second worksheet, you will need to use the vlookup function.

    Here is a short tutorial on its use and syntax.

    http://www.techonthenet.com/excel/formulas/vlookup.php

+ 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