+ Reply to Thread
Results 1 to 7 of 7

INDEX MATCH when duplicate search value in one cell

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011
    Posts
    3

    INDEX MATCH when duplicate search value in one cell

    Hi,

    looking for a solution for the following problem I couldn't find an answer in the web.
    When I use the INDEX/MATCH function, it doesn't work, when I have the value I am searching for multiple times in one cell.
    Please see attached file.

    Thanks a lot in advance for your help.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: INDEX MATCH when duplicate search value in one cell

    hi doc.ramses. welcome to the forum. could you explain what you want to achieve? if the Value to Search is within column B, return Column A? you can try:
    =IF(ISNUMBER(SEARCH(C3,B3)),A3,"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: INDEX MATCH when duplicate search value in one cell

    =if(countif(b3,"*"&c3&"*"),a3,"")

  4. #4
    Registered User
    Join Date
    10-11-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: INDEX MATCH when duplicate search value in one cell

    Hey,

    thank you for your help. I missed to mention that the value I am searching for, is somewhere in column B. So the returned value in A (which should be the same row as searched value in B) is mostly not from the same row as the search reference in column C.
    I hope I could make it clear.

    Looking forward to your suggestions!

  5. #5
    Registered User
    Join Date
    10-09-2012
    Location
    Mumbai,India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: INDEX MATCH when duplicate search value in one cell

    Hi,

    Please try below formula in D2=LOOKUP(3^17,SEARCH(C3,B3),A3)

    It works for me....not sure this is what you want.

    Thanks & Warm Regards,
    Prasad Avasare

  6. #6
    Registered User
    Join Date
    10-11-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: INDEX MATCH when duplicate search value in one cell

    Thank you Prasad, this also works for me, although I don't really understand how it works.
    Can you tell me what the 3^17 is doing ?

  7. #7
    Registered User
    Join Date
    10-09-2012
    Location
    Mumbai,India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: INDEX MATCH when duplicate search value in one cell

    3^17=129140163, The individual cell can have 32767 characters (length), obviously can not be greater than this number. You can take any number but should be greater than the length of sentence. Here we are looking up a word in C column within B which may have different length.

    Thanks and Warm Regards,
    Prasad

+ 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