+ Reply to Thread
Results 1 to 3 of 3

Find text within a string + column and return a value

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

    Find text within a string + column and return a value

    How can i vlookup the word "blue" in column A and return "2" from column B?


    one red car 1
    one blue bus 2
    five green trucks 3
    Last edited by PY_; 07-23-2010 at 10:20 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Find text within a string + column and return a value

    You can use Wildcards in VLOOKUP, eg:

    =VLOOKUP("*blue*",A:B,2,0)

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

    Re: Find text within a string + column and return a value

    I had to add the following to look up a cell's value and it seems to work correctly.

    "*"&D1&"*"

    Thank you very much!
    Last edited by PY_; 07-23-2010 at 10:31 AM.

+ 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