+ Reply to Thread
Results 1 to 5 of 5

Combine two sets of data

  1. #1
    Registered User
    Join Date
    08-15-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Combine two sets of data

    Hey all,

    I'm stuck on something and was hoping you guys can help me. Say I got information from two different sources. One has First Name Last Name and SS# and the other has First Name Last Name and Occupation. Both are completely out of order and there is no 1-1 relationship so there are more names in one category then the other. Regardless, I want to combine what does matchup together so it shows up as First Name, Last Name, SS# and Job all on one line. For arguments sake let's say all the names match up exactly and there are no duplicate names. The data would be in one spreadsheet and look kinda like this:

    Please Login or Register  to view this content.
    So if the first name and last name match in either group I want the data combined. In the above example the data would come out to be:
    Please Login or Register  to view this content.
    Any ideas?

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

    Re: Help combining 2 sets of data

    I'd make a "dummy column" for the second list to combine 1st and last names. Lets' say list 2 is in F2:H5, in I2 = F2&G2

    Then in D2,
    =IFERROR(INDEX($H$2:$H$5,MATCH(A2&B2,$I$2:$I$5,0)),"")
    Does that work for you?

    Alternately you could use an array formula but depending on your list sizes, that might slow down your worksheet.
    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

  3. #3
    Registered User
    Join Date
    08-15-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help combining 2 sets of data

    Quote Originally Posted by ChemistB View Post
    I'd make a "dummy column" for the second list to combine 1st and last names. Lets' say list 2 is in F2:H5, in I2 = F2&G2

    Then in D2,
    =IFERROR(INDEX($H$2:$H$5,MATCH(A2&B2,$I$2:$I$5,0)),"")
    Does that work for you?

    Alternately you could use an array formula but depending on your list sizes, that might slow down your worksheet.
    I could not get that to work. Are you doing it under the assumption that the left data is in A2:C7? I tried it under those conditions and plugged it into D2 and downward and it showed up blank.

  4. #4
    Registered User
    Join Date
    08-15-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help combining 2 sets of data

    Never mind got it working, thanks!

  5. #5
    Registered User
    Join Date
    08-10-2011
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: Combine two sets of data

    If you are satisfied with the help you have received please mark your thread Solved, I have included instructions below.

    To mark your thread solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save
    When helped,use the icon right of the post #.

+ 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