+ Reply to Thread
Results 1 to 4 of 4

Returning a value based on a cell with a partial match

  1. #1
    Forum Contributor
    Join Date
    04-23-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    107

    Returning a value based on a cell with a partial match

    Hi

    I was wondering if you could help me with a problem.. Iam trying to perform a lookup when the LOOKUP VALUE exists in the TABLE ARRAY among other text.. You will understand what i mean if you look at the sheet i have attached.


    odds experiment.xlsx

    CELL A 3 is 'Parma'
    CELL D 10 contains 'Parma' as well as 'AC Milan v'

    I want the lookup in Cell B3 to return the contents of CELL E10 if the contents of CELL A3 exists in a range of cells in Column D (if you get what i mean)

    The next example could be 'Crotone' which would be in CELL A4, which also exists in D19, so i would want the formula in B4 to return the contents of E19

    Any help if this can be done would be greatly appreciated.

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Returning a value based on a cell with a partial match

    The following will be useful: http://chandoo.org/wp/2010/11/01/usi...-with-vlookup/
    Please click the * icon below if I have helped.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,800

    Re: Returning a value based on a cell with a partial match

    You can use wildcard characters with VLOOKUP, so you could put this in B3:

    =VLOOKUP("*"&A3&"*",D2:E222,2,FALSE)

    which returns Yes (1) in this instance. Note that if the word is duplicated in other cells, VLOOKUP will only find the first occurrence.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    04-23-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    107

    Re: Returning a value based on a cell with a partial match

    Quote Originally Posted by Pete_UK View Post
    You can use wildcard characters with VLOOKUP, so you could put this in B3:

    =VLOOKUP("*"&A3&"*",D2:E222,2,FALSE)

    which returns Yes (1) in this instance. Note that if the word is duplicated in other cells, VLOOKUP will only find the first occurrence.

    Hope this helps.

    Pete
    excellent, many thanks pete, this was exactly what i was looking for.

+ 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