+ Reply to Thread
Results 1 to 5 of 5

Array and Match/Lookup

  1. #1
    Registered User
    Join Date
    12-24-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    4

    Array and Match/Lookup

    Hi,

    I'm having difficulties in using these functions. What I want is this.

    I have a list or table (text format). Then I want to check a certain cell containing a text if it is in my table then mark it as Yes or No.

    So far, I got to here:

    =IF(ISNA(VLOOKUP(A2,$D$2:$D$185,1,FALSE)),"No","Yes")

    A2 is the cell I want to check.
    D2:D185 is my lookup table.

    My problem here is when the lookup_value contains two or more words. I also want it to be marked as "Yes" because it is just a sub-text. This is my example:

    Lookup table/Array:
    Panasonic
    Asus
    Intel

    Now I want to check these cells:

    Panasonic - Yes
    Cisco - No
    Asus - Yes
    Asus Subcon - No <- Here's my problem, and this should be Yes because it is still Asus.

    Please help me on this. i just want to use a normal excel function, not visual basic. The long method to this the IF function, is there another more shortcut method like lookup or match functions?

    Thanks,
    Harold

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Array and Match/Lookup

    Possibly . . .

    =VLOOKUP(MID(A2,1,FIND(CHAR(32),A2,1)-1),$D$2:$D$185,1,FALSE)
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

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

    Re: Array and Match/Lookup

    or

    =IF(ISNUMBER(MATCH(LEFT(A2,FIND(" ",A2&" ")-1),$D$2:$D$185,0)),"Yes","No")
    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.

  4. #4
    Registered User
    Join Date
    12-24-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Array and Match/Lookup

    yay! thanks sir..

    the key is to find first the lookup text in the cell then return it for matching.. nice..

  5. #5
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Array and Match/Lookup

    If you're satisfied with your solution, please mark your thread as solved by going to the top of your first post and clicking on Thread Tools and Go Advanced.

    Remember to leave feed back / add to the reputations of those who contributed a response you found helpful. See my signature for how to go about it.

+ 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