+ Reply to Thread
Results 1 to 4 of 4

Compare a string in two columns, if match then append string from third column

  1. #1
    Registered User
    Join Date
    03-23-2004
    Posts
    2

    Compare a string in two columns, if match then append string from third column

    In sheet 1, I have a long list of part numbers in column A.

    In sheet 2, I have two columns with an even longer list of part numbers in column A, and the part name in adjacent column B.

    I want to check to see if the part number is listed in both sheets, and if it is, take the part name from sheet 2 and place it in the cell in sheet 1... any suggestions?

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    How about vlookup

    http://www.contextures.com/xlFunctions02.html

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    03-23-2004
    Posts
    2
    I'm getting a lot of #REF cells... would this have anything to do with the range being a combo of both decimal part numbers such as 2342.34234 along with things like HGI-448 7GH?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Post an example and someone will take a look for you

    VBA Noob

+ 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