+ Reply to Thread
Results 1 to 4 of 4

Append column to list based on match

  1. #1
    Registered User
    Join Date
    01-27-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Append column to list based on match

    Hello,

    This is my first post, so let me know if I'm not clear. Lets say I have a list of 10,000 rows with columns for
    SSN/DOB/ETHNICITY
    eg 123456789/feb-2-1950/White

    Assume all SSN are unique. lets say I also have a seperate list of 8000 rows with unique SSN

    SSN/HAIR COLOR

    I want to append HAIR COLOR column to my original spreadsheet. However, not all entries will have HAIR COLOR. I cannot just sort both lists by SSN then copy the HAIR COLOR COLUMN to the end of the other list after ETHNICITY. Is there an easy way to do this so that HAIR COLOR will have blank rows where necessary and matched by SSN on the appropriate other rows.
    Last edited by NBVC; 01-31-2011 at 04:43 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: Append column to list based on match

    try:

    =IF(ISNUMBER(MATCH(A2,SHEET2!A:A,0)),VLOOKUP(A2,SHEET2!A:B,2,FALSE),"")

    where A2 is the first SSN on your active sheet, and Sheet2, columns A:B contain the SSN/Hair colour data.

    copied down.
    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
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Append column to list based on match

    Did not refresh - n beat me !! and with a more comprehensive answer!

    please post your workbook and i'll show you how i have carried out this task in the past. its a ball ache if you dont want to use access..... but can be done
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  4. #4
    Registered User
    Join Date
    01-27-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Append column to list based on match

    Wow perfect, thanks for the prompt response!

+ 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