+ Reply to Thread
Results 1 to 6 of 6

Can't "Index/Match" where multiple values held in one cell

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365 Version 2501 64-bit
    Posts
    1,468

    Can't "Index/Match" where multiple values held in one cell

    As shown on Rows 1 - 9 on the attached, Index/Matching is straightforward where each cell holds only one value.

    But need the formula that can find a match when there are multiple values in a cell as shown in B14?

    All solutions, suggestions and alternatives accepted gratefully, as ever

    Ochimus
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Can't "Index/Match" where multiple values held in one cell

    is thiswhat you mean?


    =IF(ISNUMBER(SEARCH(B17,B14)),C14,"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365 Version 2501 64-bit
    Posts
    1,468

    Re: Can't "Index/Match" where multiple values held in one cell

    Glenn, Many thanks for prompt response.

    Your solution is perfect for what I attached, but just seen End User has several rows of cells with multiples, each of which have different values (e.g. B14 - B16 each have at least five codes each, with different prices in C14:C16

    So I'm looking to search in B14:B16 for whichever code is in B21, and find the matching price in C14:C16

    Hope you can solve that extension as quickly?

    Ochimus

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Can't "Index/Match" where multiple values held in one cell

    Yep.

    =INDEX($C$14:$C$16,MATCH("*"&B19&"*",$B$14:$B$16,0))
    Attached Files Attached Files

  5. #5
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Can't "Index/Match" where multiple values held in one cell

    Not sure try put this on C17:
    =SUMPRODUCT(SUMIF($B$2:$B$6,TRIM(MID(SUBSTITUTE(TRIM(SUBSTITUTE($B17,"."," "))&" "," ",REPT(" ",99)),ROW(INDIRECT("1:"&LEN(TRIM(SUBSTITUTE($B17,"."," "))&" ")-LEN(SUBSTITUTE(TRIM(SUBSTITUTE($B17,"."," "))&" "," ",""))))*99-99+1,99)),$C$2:$C$6))
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365 Version 2501 64-bit
    Posts
    1,468

    Re: Can't "Index/Match" where multiple values held in one cell

    Glenn,

    Many thanks for the solution to the expanded challenge.


    Can't remember seeing wild cards in Index Matches before, but proves Old Dogs can learn New Tricks!

    Ochimus

+ 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: 2
    Last Post: 07-24-2017, 02:19 AM
  2. Issue using Index/Match to pull multiple occurrences of "Match" criteria
    By aridfriedman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2014, 11:38 AM
  3. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  4. Replies: 7
    Last Post: 04-11-2013, 12:46 AM
  5. Replies: 10
    Last Post: 12-18-2012, 07:59 AM
  6. [SOLVED] Variable "sheet-name" and "range-name" wanted in INDEX/MATCH-function
    By Fiebuls in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-01-2012, 04:09 PM
  7. Replies: 3
    Last Post: 02-16-2011, 02:55 PM

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