+ Reply to Thread
Results 1 to 3 of 3

Vlookup - Search for text within a string

  1. #1
    Forum Contributor PY_'s Avatar
    Join Date
    09-23-2008
    Location
    Houston
    MS-Off Ver
    Office 2016
    Posts
    289

    Question Vlookup - Search for text within a string

    I am trying to perform a vlookup searching for a string of text within a column.

    Example:

    B2 = "Blue"
    In column C, there is a phrase "I want a blue horse".
    D:D = my return values after lookup

    How would i perform a vlookup on the value of B2 within column C and return the value of D?
    Last edited by PY_; 03-28-2012 at 08:19 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Vlookup - Search for text within a string

    Possibly this
    =VLOOKUP("*" & B2 & "*",$C$2:$D$4,2,0)

  3. #3
    Forum Contributor PY_'s Avatar
    Join Date
    09-23-2008
    Location
    Houston
    MS-Off Ver
    Office 2016
    Posts
    289

    Re: Vlookup - Search for text within a string

    That works great. I was not aware i could use wildcards in vlookup. Good to know!

    Thank you davesexcel!

+ 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