+ Reply to Thread
Results 1 to 3 of 3

function needed to compare lists

  1. #1
    Registered User
    Join Date
    06-24-2008
    Posts
    1

    function needed to compare lists

    I have a worksheet, xxx, with a list of names in column A and text information for some of the names in column B. In a second workbook I also have a list of names in column A. In column B of the 2nd workbook I need to be able to get the text information from the 1st list if the names are the same in the 2 workbooks.

    I tried the following in column B of the second workbook:

    =IF(XXX.xls!$A$1:$A$10=A1,XXX.xls!$B$1:$B$10,0)

    This only sees to work if the 2 lists of names are the exact same the problem is the 2 lists of names may be slightly different.

    Thanks for your help!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Excel isn't very good at mind reading. It needs an exact match. Try to find a way to get them to be an exact match or select a portion of each to be an exact match. For example
    LEFT(XXX!A1:A10,6) looks at the 6 leftmost characters. Or
    IF(ISNUMBER(SEARCH(A1, abcdef)... returns true if abcdef is anywhere within your cell.
    Hard to know exactly what you need without some example data.

    ChemistB

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Please read our forum rules about cross-posting:

    http://www.puremis.net/excel/cgi-bin...num=1214330398
    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.

+ 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