+ Reply to Thread
Results 1 to 6 of 6

Lookup a word in a table and retrieve a result..... more details follows...

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    14

    Lookup a word in a table and retrieve a result..... more details follows...

    Hi guys and dolls


    I have a data table with several rows and columns (Material Master, MM) and from another Excel-sheet I need to lookup a specific word in the MM. The word must be found in a column containing material description (Fields with multiple words and not in an organised way). The result of a hit (could be more hits, but the first hit is OK) should be returned to my "lookup file"..... Sounds easy??? Not to me


    Help is needed

    Eli Nielsen

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lookup a word in a table and retrieve a result..... more details follows...

    So if you are looking up a work that you have entered in Sheet2, A2, and trying to find it in Sheet 1, column B, and want to return corresponding item from column A in Sheet1, then try:

    =INDEX('Sheet1'!A:A,MATCH("*"&$A2&"*",'Sheet1'!$B:$B,0))

    you can copy down and or across, if needed to get more info.
    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
    Registered User
    Join Date
    02-21-2012
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Lookup a word in a table and retrieve a result..... more details follows...

    Hi again

    It's so simple it's almost embarrasing... I'm not so familiar with the "&" function, but I think I got it now. Thanks a lot for your quick response.


  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lookup a word in a table and retrieve a result..... more details follows...

    & is an easier alternative to the CONCATENATE function and it reduces number of functions you use (especially usefully to avoid nested functions limit)

    "*"&A2&"*" is equivalent to CONCATENATE("*",A2,"*")

  5. #5
    Registered User
    Join Date
    02-21-2012
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Lookup a word in a table and retrieve a result..... more details follows...

    Nested ??.... Like a function within a function ??

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lookup a word in a table and retrieve a result..... more details follows...

    yes, that's what I mean....

    Like

    =IF(ISNA(MATCH(CONCATENATE(A1,B1),X1:X10,0)),"yes","no")

    the IF, ISNA, MATCH and CONCATENATE are nested functions.

+ 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