+ Reply to Thread
Results 1 to 9 of 9

Pull multiple values for a single cell with VLOOKUP (and with wildcard)

  1. #1
    Registered User
    Join Date
    04-29-2020
    Location
    New York
    MS-Off Ver
    2007
    Posts
    3

    Pull multiple values for a single cell with VLOOKUP (and with wildcard)

    Hi, hope someone can help me with a fancy Vlookup.

    I have a column with values (unique). Need to pull the matching values using VLOOKUP from a table.
    The value would be as usual in column 1 of the vlookup table, but it could be found in multiple rows and it will be positioned anywhere in the string (wildcard)
    ***********
    Example - my value to search for is 123
    In the Vlookup table it could be present in one or multiple rows and anywhere in the string: Row1: ABC123 Row2: A123XYZ Row3: 123CDE
    I know for sure that the exact match is not found (did regular vlookup).
    And I was able to create a VLOOKUP which brings back a wildcard value but only one, the first hit.
    In the example above, it will return only ABC123

    How do I pull all matching values (with wildcard)?
    To enhance the question - once I find a fuzzy match, I also need to pull a value from another column on the Vlookup table
    Please see attachment

    Thank you so much in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Pull multiple values for a single cell with VLOOKUP (and with wildcard)

    If you mean it that you're using Excel 2007, then this would be much more efficient with user-defined functions implemented in VBA. Can you use VBA?

  3. #3
    Registered User
    Join Date
    04-29-2020
    Location
    New York
    MS-Off Ver
    2007
    Posts
    3

    Re: Pull multiple values for a single cell with VLOOKUP (and with wildcard)

    Quote Originally Posted by hrlngrv View Post
    If you mean it that you're using Excel 2007, then this would be much more efficient with user-defined functions implemented in VBA. Can you use VBA?
    Unfortunately, I don't know it.

  4. #4
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,250

    Re: Pull multiple values for a single cell with VLOOKUP (and with wildcard)

    Try in B2 and copy across and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Good luck!

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Pull multiple values for a single cell with VLOOKUP (and with wildcard)

    Please try at
    C12
    =IFERROR(INDEX($A$2:$A$5,MATCH(TRUE,INDEX(COUNTIF(C$11:C11,$A$2:$A$5)<--TEXT(MMULT(COUNTIF($H$3:$H$8,{"","*"}&$A$2:$A$5&{"","*"}),{1;1}),"0;;1"),),)),"")

    D12:E12
    =IF((C12="")+(C12="N/A"),"",IFERROR(INDEX(H$1:H$8,SMALL(IF(ISNUMBER(SEARCH($C12,$H$3:$H$8)),ROW(H$3:H$8)),COUNTIF($C$12:$C12,$C12))),"N/A"))

    H12
    =IFERROR(INDEX($H$1:$H$8,SMALL(IF(ISNUMBER(SEARCH($G12,$H$3:$H$8)),ROW($H$3:$H$8)),COLUMNS($H12:H12))),IF(COLUMNS($H12:H12)=1,"n/a",""))
    Attached Files Attached Files

  6. #6
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Pull multiple values for a single cell with VLOOKUP (and with wildcard)

    @Bo_Ry, Hello. For what this part IF(ISERROR(SEARCH($A2;$H$3:$H$8;1));COUNTA($H$3:$H$8)+1;1) in B2?
    Why not simple IF(ISNUMBER(FIND($A2;$H$3:$H$8));ROW($H$3:$H$8)-2)?

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Pull multiple values for a single cell with VLOOKUP (and with wildcard)

    That is Estevaoba's Formula from Post #4

    My formula in at H12

  8. #8
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Pull multiple values for a single cell with VLOOKUP (and with wildcard)

    Oh sorry. That's ok :-)

  9. #9
    Registered User
    Join Date
    04-29-2020
    Location
    New York
    MS-Off Ver
    2007
    Posts
    3

    Re: Pull multiple values for a single cell with VLOOKUP (and with wildcard)

    Thank you very much, it helped!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 05-27-2019, 03:46 PM
  2. Vlookup returning multiple values in one single cell
    By Mona07 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-17-2017, 04:28 AM
  3. [SOLVED] Wildcard vlookup return multiple values
    By Manikandan Arumugam in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-21-2017, 06:04 AM
  4. [SOLVED] vLookup multiple values separated by ";" in single cell / return result in single cell
    By Tunesmith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2015, 12:02 PM
  5. Replies: 1
    Last Post: 04-20-2015, 03:18 PM
  6. [SOLVED] Need Vlookup to pull multiple values (preferabbly in a single Cell)
    By megx27 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2013, 01:02 AM
  7. Replies: 8
    Last Post: 11-08-2010, 10:14 AM

Tags for this Thread

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