+ Reply to Thread
Results 1 to 7 of 7

Search Function - Lookup from a cell in a range of cells

  1. #1
    Registered User
    Join Date
    12-12-2003
    Posts
    79

    Search Function - Lookup from a cell in a range of cells

    Hi , thanks in advance for any help

    say in CELL A1 i have the name Matt Richards

    and in CELLS B1 - B10 i have a list of names , and one of them for example is Matthew Richards

    I want to have a formula in Cell C1 that looks up Matt Richards in CELL A1 and see if that name appears in part in any name in the B1-10 list

    any help to get me started much appreciated , thanks

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Search Function - Lookup from a cell in a range of cells

    Try this..

    =ISNUMBER(MATCH("*"&TRIM(LEFT(A1,FIND(" ",A1)))&"*"&TRIM(RIGHT(A1,LEN(A1)-FIND(" ",A1)))&"*",B1:B10,0))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    12-12-2003
    Posts
    79

    Re: Search Function - Lookup from a cell in a range of cells

    thanks, that works for the Matt Richards, two questions

    1) Is there a way to get the result as the cell data it has found instead of saying TRUE
    2) Can it be made to find closer matches , ie if i lookup up Andrew Bond its not associating that with Andy Bond

    thanks again

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Search Function - Lookup from a cell in a range of cells

    Is there a way to get the result as the cell data it has found instead of saying TRUE
    =INDEX(B1:B10,MATCH("*"&TRIM(LEFT(A1,FIND(" ",A1)))&"*"&TRIM(RIGHT(A1,LEN(A1)-FIND(" ",A1)))&"*",B1:B10,0))

    Can it be made to find closer matches , ie if i lookup up Andrew Bond its not associating that with Andy Bond
    You would need to maintain a list of these close matches (Andy eaquals Andrew etc.) because Excel is not smart enough to guess that Andy equals Andrew

  5. #5
    Registered User
    Join Date
    12-12-2003
    Posts
    79

    Re: Search Function - Lookup from a cell in a range of cells

    that new formula just creates a blank cell for me ?
    Good point on the andy and andrew , they have same surname though , any way of checking the surname matches from cell a1 in the B list , most of time the surnames will always match its the first name which has slight differences such as Andy and Andrew so i guess search for a match after the space from the first name to find an exact match would work ?

    thanks for all the help !!

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Search Function - Lookup from a cell in a range of cells

    See if the attached works for you..

    Results are in highlighted column
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-12-2003
    Posts
    79

    Re: Search Function - Lookup from a cell in a range of cells

    yes that works a treat,, thank you !!!

+ 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