+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : How to combine vlookup and search partial text

  1. #1
    Registered User
    Join Date
    03-24-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    How to combine vlookup and search partial text

    Hello All,

    I want to create a formular to return a value by searching a partial text. For example, in Sheet 2 col B, I want to search Sheet 2 col A (ID001) from the partial text of Sheet 1 Col A (ID001 - Name 1) and return the value of Sheet 1 Col B to Sheet 2 Col B (Yes).

    Sheet 1:
    Col A Col B
    ID001 - Name 1 Yes
    ID002 - Name 2 No
    ID003 - Name 3 No

    Sheet 2:
    Col A Col B
    ID001 [Return Value]
    ID003 [Return Value]

    Thanks for your help in advance.
    Last edited by NBVC; 03-24-2011 at 03:34 PM.

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

    Re: How to combine vlookup and search partial text

    Try

    =Vlookup(A2&"*",'Sheet1'!A:B,2,FALSE)
    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
    03-24-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to combine vlookup and search partial text

    Great, I forgot the wildcard. Thank you.

  4. #4
    Registered User
    Join Date
    04-14-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to combine vlookup and search partial text

    On a similar case, I am trying to create a formula for the following scenario but to no avail. Please note that Cell in Col A Sheet1 have multiple values. e.g A1 contains "ID001, ID002, ID003"

    Sheet 1:
    Col A Col B
    ID001, ID002, ID003 Yes
    ID004, ID005, ID006 No

    Sheet 2:
    Col A Col B
    ID002 [Return Value = Yes]
    ID006 [Return Value = No]

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

    Re: How to combine vlookup and search partial text

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

+ 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