+ Reply to Thread
Results 1 to 7 of 7

Matching First and second names and zip codes with ID numbers in two different sheets

  1. #1
    Registered User
    Join Date
    08-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    4

    Matching First and second names and zip codes with ID numbers in two different sheets

    Hi

    I am new but really need help. I need to match a list of names with there ID number. The list of names is small only about 200 but the ID is is about 6000.

    The fist list has a First and second name a zip code and other bit's of information that I need to have the ID to be able to imput it but it doesn't have that ID number

    F Name L Name Zip Code Email Info
    paul swain kt10 9ij [email protected] works at home
    Jo bloggs ls3 5th [email protected] some info
    Rich roper ba34 613 [email protected] works from home


    The list of ID's has First and second name a zip code and the ID code but dosn't have the information on it that I need and isn't in the same order.


    F Name L Name Zip Code ID
    James jones kt23 8uu 1001
    other name zp1 o11 1002
    other name 2 zp2 o11 1003
    other name3 zp1 5rr 1004
    paul swain kt10 9ij 1005
    other name6 zp1 o11 1006
    other name 7 zp2 o11 1007
    other name 66 zp1 o11 1008
    other name 70 zp2 o11 1009
    Jo bloggs ls3 5th 1010
    Rich roper ba34 613 1011

    My question is - is there a script I can use that will match the First and second name and post on the ID list and then move the ID code onto a separate column?

    so i end up with this:

    F Name L Name Zip Code Email Info ID
    paul swain kt10 9ij [email protected] works at home 1005
    Jo bloggs ls3 5th [email protected] some info 1010
    Rich roper ba34 613 [email protected] works from home 1011

    hope that makes sense


    Thanks!
    Last edited by paulnrswain; 08-19-2013 at 09:15 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Matching First and second names and zip codes with ID numbers in two different sheets

    1 - Next to your first list you need to make a "helper" column by combining the First name, last name and zip code (=A1&B1&C1). Let's call it column F:F.
    2 - Copy and Paste Special Values over the formula.
    3 - Repeat step 1 & 2 for the other list that has the ID's. Insert this "helper" column to the immediate left of the ID column. Let's call it column C:C
    4 - Next to the helper column in the first list, put this formula in and copy down =VLOOKUP(F1,List2!$C$1:$C$5000,2,FALSE)

    Please upload your spreadsheet with any sensitive data removed (Go Advanced-->Manage Attachments) if this wasn't helpful. It's easier for us when we have a file to play with.
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Matching First and second names and zip codes with ID numbers in two different sheets

    Hi and welcome to the forum

    Craig is spot-on with step 1, but you can leave the formula there

    and to extract the data you need, you can use this variation. Assuming your 2 tables are on sheet1 and sheet2 (adjust references as needed)...
    =index(sheet1!$A$1:$E$200,match(A2&B2&C2,sheet1!$F$1:$F$200,0),match(E$1,sheet1!$A$1:$E$1,0))
    copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    08-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Matching First and second names and zip codes with ID numbers in two different sheets

    Hi

    Thanks for your help, I but my sheets are more complex than I thought and my excel skills aren't able to get the formala to work can you have another look

    Here's the file The first tab is the sheet with the info I want the second tab is the sheet with the ID on it and the third tab is what I want as an output:
    File that need.xls

    (I have changed all the names etc)

  5. #5
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Matching First and second names and zip codes with ID numbers in two different sheets

    Please see the attached file. The columns in yellow on the first tab contain the formulas you need. Be sure to update the formulas with the correct tab names.

    paulnrswain solution.xls

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Matching First and second names and zip codes with ID numbers in two different sheets

    Thanks for the file, and no, your sheets are not that complex, and what I suggested will work - you just need to adjust the references....
    for the helper column in sheet2, copied down...
    =C2&B2&H2
    you will need to use the same principle for sheet1 too

    Then to pull in the info on sheet3...
    =INDEX('ID NO INFO'!$A$1:$H$500,MATCH('OUT PUT I want '!$C2&'OUT PUT I want '!$B2&'OUT PUT I want '!$D2,'ID NO INFO'!$I$1:$I$500,0),MATCH('OUT PUT I want '!A$1,'ID NO INFO'!$A$1:$H$1,0))
    Copy this down, and then adjust the references sheet1 for those columns that you need from that sheet

  7. #7
    Registered User
    Join Date
    08-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Matching First and second names and zip codes with ID numbers in two different sheets

    Thanks for everyone's help

+ 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. [SOLVED] Matching values in a table, with larger list of numbers and names
    By aferoz in forum Excel General
    Replies: 1
    Last Post: 06-20-2012, 03:45 PM
  2. Replies: 4
    Last Post: 04-30-2010, 10:08 AM
  3. Matching Names with Numbers (total)
    By jayclinton in forum Excel General
    Replies: 2
    Last Post: 09-01-2009, 06:39 PM
  4. [SOLVED] Matching names to numbers in a table
    By Giselle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2006, 01:00 AM
  5. matching codes between 2 item codes
    By JChan in forum Excel General
    Replies: 1
    Last Post: 10-15-2005, 01:05 AM

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