+ Reply to Thread
Results 1 to 4 of 4

lookup array of values using wildcards

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    13

    lookup array of values using wildcards

    Is there a formula that can be used to lookup an array of values with a "like" match instead of an exact match?

    For example, in one workbook I have my list of values:
    Resitor
    Capacitor
    Relays
    Sensors
    etc...

    In another workbook I have my data with detailed descriptions of the parts. Let's say in Cell "A1" I have:
    "1uf Capacitor, surface mount".
    Does a formula exist which I can throw in to Cell "B1" that would return:
    Capacitor

    Any help or suggestions are appreciated.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: lookup array of values using wildcards

    Assuming that your list in Sheet 1, range A1:A4
    In B1 sheet 2:
    =LOOKUP(2,1/SEARCH(Sheet1!$A$1:$A$4,Sheet2!A1),Sheet1!$A$1:$A$4)
    Quang PT

  3. #3
    Registered User
    Join Date
    12-19-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: lookup array of values using wildcards

    Thanks! It worked like a charm. For my own understanding can you clarify the first part of your formula? I'm not sure why you have the lookup value as "2" and why there is a "1/" before search.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: lookup array of values using wildcards


+ 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